/* =========================================================
   WPistic Admin — Branded login page
   ========================================================= */

body.login {
  background: linear-gradient(135deg, var(--wpab-brand, #1F6E2D), color-mix(in srgb, var(--wpab-brand) 70%, #000));
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}
body.login::before {
  content: ""; position: fixed; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.08), transparent 50%); pointer-events: none;
}

/* Container */
body.login #login {
  width: 420px; padding: 8% 0 0;
}

/* Logo */
body.login h1 a {
  background-image: none;
  background-color: #fff;
  border-radius: 18px;
  width: 76px; height: 76px;
  margin: 0 auto 16px;
  box-shadow: 0 14px 38px rgba(0,0,0,.25);
  font-size: 0;
  text-indent: -9999px;
  background-size: 64% auto !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
body.login h1 a:hover { transform: translateY(-1px); transition: transform .2s ease; }

/* If no logo set, paint the brand name */
body.login h1 a::after {
  content: attr(aria-label);
  display: block; color: var(--wpab-brand); font-family: 'Fraunces', Georgia, serif; font-size: 22px; line-height: 76px;
  text-indent: 0;
}

/* Form card */
body.login #loginform, body.login #lostpasswordform, body.login #registerform {
  background: rgba(255,255,255,.97);
  border: 0; border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
  padding: 34px 28px 24px;
  backdrop-filter: blur(8px);
}

/* Tagline */
.wpab-login__tagline {
  text-align: center;
  color: rgba(255,255,255,.85);
  margin: 0 0 18px;
  font-size: 14px;
  letter-spacing: .04em;
}
#loginform .wpab-login__tagline { display: none; }

/* Inputs */
body.login label { font-size: 13px; color: #14110A; font-weight: 600; }
body.login form .input, body.login input[type=text], body.login input[type=password] {
  border-radius: 12px !important;
  border: 1px solid #ECE2CC !important;
  padding: 12px 14px !important;
  background: #FBF8F1 !important;
  font-size: 15px !important;
  box-shadow: none !important;
}
body.login form .input:focus, body.login input[type=text]:focus, body.login input[type=password]:focus {
  border-color: var(--wpab-brand) !important;
  outline: 2px solid color-mix(in srgb, var(--wpab-brand) 30%, transparent) !important;
  outline-offset: 1px;
}

/* Submit */
body.login .button-primary {
  background: var(--wpab-brand) !important;
  border-color: var(--wpab-brand) !important;
  border-radius: 9999px !important;
  padding: 12px 22px !important;
  font-weight: 600 !important;
  text-shadow: none !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.2) !important;
  width: 100%;
}
body.login .button-primary:hover {
  background: color-mix(in srgb, var(--wpab-brand) 88%, #000) !important;
}

/* Links */
body.login #nav, body.login #backtoblog { text-align: center; }
body.login #nav a, body.login #backtoblog a { color: rgba(255,255,255,.85) !important; text-shadow: none !important; font-weight: 500; }
body.login #nav a:hover, body.login #backtoblog a:hover { color: var(--wpab-accent, #D4A017) !important; }

/* Privacy policy + language switcher cleanup */
body.login .privacy-policy-page-link, body.login .language-switcher { color: rgba(255,255,255,.6); text-align: center; }

/* Credit */
.wpab-login__credit {
  position: fixed; bottom: 16px; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,.7); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.wpab-login__credit strong { color: var(--wpab-accent, #D4A017); }

/* Error/success messages */
body.login .message, body.login #login_error {
  border-radius: 12px;
  border-left: 4px solid var(--wpab-accent, #D4A017);
  background: rgba(255,255,255,.95);
  color: #14110A;
  padding: 12px 14px;
  margin-bottom: 14px;
}
body.login #login_error { border-left-color: #b71c1c; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  body.login h1 a:hover { transform: none; }
}
