/*
 * Fitzroy Square Garden — Branded Login Page Styles
 * Scoped exclusively to body.login so these rules cannot leak into wp-admin.
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Page foundation ── */
body.login {
  background: #2D4A3E;
  font-family: 'DM Sans', system-ui, sans-serif;
}

body.login a {
  color: #B8965A;
}

body.login a:hover {
  color: #D4B07A;
}

/* ── Wordmark replacing the default WP logo ── */
body.login h1 a {
  background-image: none !important;
  width: auto !important;
  height: auto !important;
  display: block;
  text-indent: 0 !important;
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 600;
  font-style: italic;
  color: #F5F0E8;
  letter-spacing: 0.03em;
  line-height: 1.2;
  padding: 0;
  margin-bottom: 0.2rem;
  overflow: visible;
}

body.login h1 a::after {
  content: 'London W1T  ·  Est. 1790';
  display: block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #D4B07A;
  margin-top: 0.5rem;
}

/* ── Login form container ── */
body.login #login {
  padding: 2rem 0;
}

body.login #loginform,
body.login #lostpasswordform {
  background: #F5F0E8;
  border: none;
  border-radius: 2px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.25);
  padding: 2rem 2rem 1.5rem;
}

/* ── Introductory message ── */
body.login .login-message-fitzroy {
  background: rgba(245, 240, 232, 0.08);
  border: 1px solid rgba(184, 150, 90, 0.35);
  border-radius: 2px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  color: rgba(245, 240, 232, 0.85);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ── Labels ── */
body.login label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2C2A25;
}

/* ── Text and password inputs ── */
body.login input[type="text"],
body.login input[type="password"] {
  border: 1.5px solid #B8965A;
  border-radius: 2px;
  background: #FFFFFF;
  color: #2C2A25;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  padding: 0.6rem 0.75rem;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus {
  border-color: #2D4A3E;
  box-shadow: 0 0 0 2px rgba(45, 74, 62, 0.15);
  outline: none;
}

/* ── Submit button ── */
body.login .button-primary,
body.login input[type="submit"].button-primary,
body.login .wp-core-ui .button-primary {
  background: #2D4A3E !important;
  border-color: #2D4A3E !important;
  border-radius: 2px;
  color: #F5F0E8 !important;
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 1.5rem;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: background 0.2s !important;
  height: auto;
}

body.login .button-primary:hover,
body.login input[type="submit"].button-primary:hover,
body.login .wp-core-ui .button-primary:hover {
  background: #3D6355 !important;
  border-color: #3D6355 !important;
  color: #F5F0E8 !important;
}

body.login .button-primary:focus,
body.login input[type="submit"].button-primary:focus {
  box-shadow: 0 0 0 2px rgba(184, 150, 90, 0.5) !important;
  outline: none !important;
}

/* ── Nav links (Back to site / Lost password) ── */
body.login #nav,
body.login #backtoblog {
  text-align: center;
}

body.login #nav a,
body.login #backtoblog a {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
  color: #D4B07A;
}

/* ── Error / info notices ── */
body.login .message,
body.login #login_error {
  border-left: 4px solid #B8965A;
  background: rgba(245, 240, 232, 0.95);
  border-radius: 0 2px 2px 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.88rem;
  color: #2C2A25;
}

body.login #login_error {
  border-left-color: #c0392b;
}

/* ── "Remember Me" checkbox ── */
body.login .forgetmenot label {
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0;
  color: #6B6760;
}

/* ── Privacy policy link below form ── */
body.login .privacy-policy-page-link {
  text-align: center;
}

body.login .privacy-policy-page-link a {
  color: rgba(245, 240, 232, 0.5);
  font-size: 0.75rem;
}

/* ── Mobile ── */
@media (max-width: 480px) {
  body.login #login {
    padding: 1rem 0;
    width: 94%;
  }

  body.login h1 a {
    font-size: 1.5rem;
  }

  body.login #loginform,
  body.login #lostpasswordform {
    padding: 1.5rem 1.25rem 1.25rem;
  }
}
