/* login.css — fully self-contained, overrides base.css for login page */

body.login-bg {
  background: var(--page-bg);
  min-height: 100vh;
  --header-bg: var(--page-bg);
  
}

/* Full-page centered layout — NOT using .container */
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 57px);
  padding: 32px 20px;
  box-sizing: border-box;
}

/* The white card */
.login-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(26,23,20,0.10), 0 1px 4px rgba(26,23,20,0.08);
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
}

/* Brand */
.login-brand {
  text-align: center;
  margin-bottom: 28px;
}
.login-brand h1 {
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.login-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* Tabs */
.auth-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 10px 8px;
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background .10s, color .10s;
}
.auth-tab:last-child { border-right: none; }
.auth-tab:hover { background: var(--faint); }
.auth-tab.active { background: var(--accent); color: #fff; border-color: var(--accent2); }

/* Fields */
.field {
  margin-bottom: 16px;
}
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
/* Override base.css width:100% with explicit box-sizing */
.field-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .10s, box-shadow .10s;
}
.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,74,138,0.10);
}

/* Main CTA button */
.auth-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  margin-top: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .12s, transform .10s;
}
.auth-btn:hover {
  background: var(--accent2);
  transform: none;
}

/* Status messages */
.auth-status {
  min-height: 18px;
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #ef4444;
}
.auth-status.success { color: #2e7d4f; }

.auth-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* Confirm screen */
.confirm-sent {
  text-align: center;
  padding: 8px 0;
}
.confirm-icon {
  font-size: 52px;
  margin-bottom: 14px;
}
.confirm-sent h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

/* ══════════════════════════════
   MOBILE — login.css
══════════════════════════════ */
@media (max-width: 480px) {
  .login-main { padding: 16px 12px; }
  .login-box  { padding: 22px 16px; }
  .login-brand h1 { font-size: 20px; }
}
