@font-face {
  font-family: "LauraLex DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/dmsans-400-n.woff2") format("woff2");
}

@font-face {
  font-family: "LauraLex DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/dmsans-500-n.woff2") format("woff2");
}

@font-face {
  font-family: "LauraLex Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fraunces-400-n.woff2") format("woff2");
}

body.login {
  --ll-ink: #2c2a1e;
  --ll-muted: #67664f;
  --ll-petal: #fbf9ef;
  --ll-cream: #efebce;
  --ll-rose: #8c4a55;
  --ll-rose-hover: #723c46;
  min-height: 100vh;
  padding: 28px 16px;
  background: radial-gradient(ellipse at 50% 0%, #fbf9ef 0%, #efebce 70%);
  color: var(--ll-ink);
  font-family: "LauraLex DM Sans", system-ui, sans-serif;
}

body.login #login {
  box-sizing: border-box;
  width: min(100%, 440px);
  padding: 24px 0;
}

body.login #login h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 20px;
  text-align: center;
}

body.login #login h1::before {
  display: block;
  width: 88px;
  height: 52px;
  margin-bottom: 3px;
  background: url("assets/lauralex-floral.webp") center 8% / 92px auto no-repeat;
  content: "";
}

body.login #login h1 a {
  display: flex !important;
  width: auto !important;
  height: auto !important;
  flex-direction: column;
  align-items: center;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible;
  background: none !important;
  color: var(--ll-ink);
  font-size: 0;
  line-height: 0;
  text-indent: 0 !important;
  text-decoration: none;
  box-shadow: none;
}

body.login #login h1 a::before {
  display: block;
  color: var(--ll-ink);
  content: "Laura Violetta Lex";
  font-family: "LauraLex Fraunces", Georgia, serif;
  font-size: clamp(22px, 7vw, 34px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  white-space: nowrap;
}

body.login #login h1 a::after {
  display: block;
  margin-top: 5px;
  color: var(--ll-muted);
  content: "UNTERRICHT";
  font-family: "LauraLex DM Sans", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.5;
}

body.login #loginform,
body.login #lostpasswordform,
body.login #resetpassform,
body.login #registerform {
  padding: 28px;
  border: 1px solid rgba(44, 42, 30, 0.1);
  border-radius: 18px;
  background: var(--ll-petal);
  box-shadow: 0 18px 48px rgba(44, 42, 30, 0.1);
}

body.login #loginform label,
body.login #lostpasswordform label,
body.login #resetpassform label,
body.login #registerform label {
  color: var(--ll-ink);
  font-family: "LauraLex DM Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

body.login .input,
body.login input[type="text"],
body.login input[type="password"] {
  min-height: 46px;
  margin-top: 6px;
  border: 1px solid rgba(44, 42, 30, 0.2);
  border-radius: 9px;
  background: #fff;
  color: var(--ll-ink);
  font-family: "LauraLex DM Sans", system-ui, sans-serif;
  font-size: 16px;
  box-shadow: none;
}

body.login .input:focus,
body.login input[type="text"]:focus,
body.login input[type="password"]:focus {
  border-color: var(--ll-rose);
  outline: 2px solid rgba(140, 74, 85, 0.2);
  box-shadow: none;
}

body.login .button-primary,
body.login .wp-core-ui .button-primary {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--ll-rose);
  border-radius: 999px;
  background: var(--ll-rose);
  color: #fff;
  font-family: "LauraLex DM Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-shadow: none;
  box-shadow: none;
}

body.login .button-primary:hover,
body.login .button-primary:focus {
  border-color: var(--ll-rose-hover);
  background: var(--ll-rose-hover);
  color: #fff;
}

body.login #nav,
body.login #backtoblog,
body.login .privacy-policy-page-link {
  color: var(--ll-muted);
  font-family: "LauraLex DM Sans", system-ui, sans-serif;
  font-size: 13px;
}

body.login #nav a,
body.login #backtoblog a,
body.login .privacy-policy-page-link a {
  color: var(--ll-rose);
}

body.login #nav a:hover,
body.login #backtoblog a:hover,
body.login .privacy-policy-page-link a:hover {
  color: var(--ll-rose-hover);
}

body.login .ll-login-guidance {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 3px solid #d8a48f;
  border-radius: 0 10px 10px 0;
  background: rgba(251, 249, 239, 0.84);
  color: var(--ll-muted);
  font-size: 14px;
  line-height: 1.6;
}

body.login #login_error,
body.login .message,
body.login .success {
  border-left-color: var(--ll-rose);
  border-radius: 9px;
  background: var(--ll-petal);
  color: var(--ll-ink);
  box-shadow: 0 8px 24px rgba(44, 42, 30, 0.07);
}

body.login .language-switcher {
  margin-top: 18px;
}

@media (max-width: 480px) {
  body.login {
    padding: 12px;
  }

  body.login #login {
    padding-top: 16px;
  }

  body.login #loginform,
  body.login #lostpasswordform,
  body.login #resetpassform,
  body.login #registerform {
    padding: 22px 20px;
  }
}
