/* Kinderbuch-Magazin – Login-Design v1.0: ausschliesslich wp-login.php */
body.login {
  background: #f3f0e7;
  color: #344238;
  font-family: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
  min-height: 100vh;
}
body.login::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: 8px;
  background: #dce6da;
  border-bottom: 1px solid #c9d6c7;
  z-index: 1;
}
#login {
  width: min(410px, calc(100% - 32px));
  padding: clamp(32px, 7vh, 70px) 0 35px;
}
#login h1 { margin: 0 0 13px; }
#login h1 a {
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  width: min(185px, 62vw) !important;
  height: 122px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  transition: transform .2s ease;
}
#login h1 a:hover { transform: translateY(-2px); }
#login::before {
  content: 'Das Kinderbuch-Magazin';
  display: block;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(27px, 5vw, 35px);
  line-height: 1.1;
  color: #2e4536;
  margin-bottom: 9px;
  letter-spacing: -.02em;
}
#login::after {
  content: 'Ein Raum für Geschichten und Gedanken.';
  display: block;
  text-align: center;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 13px;
  line-height: 1.5;
  color: #647465;
  margin: 18px 0 0;
}
body.login #loginform,
body.login #lostpasswordform,
body.login #registerform,
body.login #resetpassform,
body.login form#language-switcher {
  background: #fffcf5;
  border: 1px solid #ddd5c7;
  border-radius: 12px;
  box-shadow: 0 6px 28px rgba(49, 56, 43, .055);
  padding: 27px 29px 24px;
}
body.login form label,
body.login .forgetmenot label { color: #344238; font-size: 14px; }
body.login form .input,
body.login input[type=text],
body.login input[type=password],
body.login input[type=email] {
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #bac9b9;
  border-radius: 6px;
  color: #28372c;
  box-shadow: none;
  font-size: 16px;
  padding: 8px 11px;
  min-height: 43px;
}
body.login input:focus-visible,
body.login button:focus-visible,
body.login a:focus-visible {
  outline: 2px solid #446b4d;
  outline-offset: 2px;
}
body.login .button-primary {
  background: #48664f;
  border: 1px solid #48664f;
  color: #fff;
  border-radius: 6px;
  box-shadow: none;
  text-shadow: none;
  min-height: 40px;
  padding: 0 17px;
  font-weight: 600;
  transition: background-color .15s ease;
}
body.login .button-primary:hover,
body.login .button-primary:focus { background: #304c37; border-color: #304c37; color: #fff; }
body.login #nav,
body.login #backtoblog { text-align: center; margin: 17px 0 0; padding: 0 8px; }
body.login #nav a,
body.login #backtoblog a,
body.login .privacy-policy-link,
body.login .language-switcher a { color: #3b6449; text-decoration: none; }
body.login #nav a:hover,
body.login #backtoblog a:hover,
body.login .privacy-policy-link:hover { color: #243d2b; text-decoration: underline; }
body.login .message,
body.login .notice,
body.login #login_error {
  background: #fffdf6;
  border-left: 4px solid #74937a;
  border-radius: 5px;
  box-shadow: none;
  color: #344238;
}
body.login #login_error { border-left-color: #a5534c; }
body.login .privacy-policy-page-link { text-align: center; margin: 17px 0 0; }
body.login .wp-hide-pw { color: #3e6448; }
body.login .wp-hide-pw:focus { border-color: #456c4f; box-shadow: 0 0 0 1px #456c4f; }
@media (max-width: 480px) {
  #login { padding-top: 30px; }
  #login h1 a { height: 108px !important; }
  body.login #loginform,
  body.login #lostpasswordform,
  body.login #registerform,
  body.login #resetpassform { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  #login h1 a, body.login .button-primary { transition: none; }
}
