/* ==========================================================================
   wp-login.php — branded to match the site (WordPress ships this page
   completely unstyled/generic by default: WP logo, blue button, gray bg).
   Loaded on top of the theme's own style.css (enqueued alongside this file)
   so the same custom properties/tokens are available here.
   ========================================================================== */

body.login {
  background: var(--bg);
  font-family: 'Inter', -apple-system, sans-serif;
}

body.login #login {
  width: 100%;
  max-width: 380px;
  padding: 40px 24px;
}

/* Swap the default WordPress logo for the site logo, linked home via
   login_headerurl/login_headertext filters (see inc/login.php). */
body.login #login h1 a {
  background-image: url('../images/logo.png');
  background-size: contain;
  background-position: center;
  width: 220px;
  height: 116px;
  margin: 0 auto 10px;
}

body.login #loginform {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 32px;
}

body.login form .input,
body.login input[type="text"],
body.login input[type="password"] {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  height: auto;
  font-size: 14.5px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  box-shadow: none;
}
body.login form .input:focus,
body.login input[type="text"]:focus,
body.login input[type="password"]:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-tint);
}

body.login label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

body.login .forgetmenot label {
  font-weight: 500;
  color: var(--text-dim);
}

body.login .wp-core-ui .button-primary,
body.login #wp-submit {
  background: var(--grad-green);
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: none;
  text-shadow: none;
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 28px;
  height: auto;
  width: 100%;
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
body.login .wp-core-ui .button-primary:hover,
body.login .wp-core-ui .button-primary:focus,
body.login #wp-submit:hover,
body.login #wp-submit:focus {
  background: var(--grad-green);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(63, 106, 18, 0.28);
}

body.login #nav,
body.login #backtoblog {
  text-align: center;
}
body.login #nav a,
body.login #backtoblog a {
  color: var(--text-dim);
  font-size: 13.5px;
  transition: color .2s ease;
}
body.login #nav a:hover,
body.login #backtoblog a:hover {
  color: var(--green);
}

/* Custom "Register as a Member" CTA appended after the form (see inc/login.php) */
.ld420-login-register {
  max-width: 380px;
  margin: 20px auto 0;
  padding: 18px 22px;
  background: var(--green-tint);
  border: 1px solid rgba(63, 106, 18, 0.18);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 13.5px;
  color: var(--text-dim);
}
.ld420-login-register a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ld420-login-register a:hover { color: var(--green-deep); }

body.login div#login_error,
body.login .message {
  border-left: none;
  border-radius: var(--radius-sm);
  box-shadow: none;
  background: var(--gold-tint);
  color: #7a5a1e;
  font-size: 14px;
  max-width: 380px;
  margin: 0 auto 16px;
}
body.login .message {
  background: var(--green-tint);
  color: var(--green-deep);
}
