/* Depends on: tokens.css, nav.css -- linked as separate <link>
   tags by every template that uses this file, NOT @import-ed here.
   @import is a serialized waterfall: the browser cannot discover an
   imported file until it has downloaded and parsed the one importing
   it, so this site's deepest chain (tokens -> nav -> calendar ->
   event_detail) cost four sequential round trips before first paint.
   Separate links are all visible in the initial HTML and download in
   parallel. Templates list dependencies first, so the cascade is
   unchanged -- see core/tests/test_template_lint.py, which fails if
   an @import is reintroduced here. */
/* Same full-bleed .hero-bg/.hero-video/.hero-scrim background as the landing
   page (core/templates/core/pilot_directory.html) -- the background rules live
   in tokens.css, and the top bar is the shared sticky one from nav.css. Flex
   column + .login-wrap's flex:1 below is what makes the login card center in
   the space *below* the topbar rather than in the full viewport. */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--text-primary);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

.login-wrap {
  position: relative;
  /* Above .hero-bg (0), .hero-video (1) and .hero-scrim (2). */
  z-index: 3;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 320px;
  /* Glass card, not a flat --surface fill: the same var(--glass-bg) +
     blur pairing already used for every sticky topbar site-wide (see
     calendar.css/standings.css/dashboard.css), so the card reads as part
     of the same design system while still letting the moving background
     show through at the edges instead of masking it with a solid panel. */
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.login-title { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 22px; }

.login-error { color: var(--critical); font-size: 13px; margin: 0 0 14px; }

.login-card label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.login-card input[type="text"],
.login-card input[type="email"],
.login-card input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13.5px;
}
/* The field right above the button gets more air than the gaps between fields. */
.login-card input[type="password"],
.login-card input.login-field-last { margin-bottom: 20px; }

.login-submit {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #04150c;
  font-weight: 800;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.login-submit:hover { background: var(--accent-strong); }

/* Over the moving hero background the old 11.5px tertiary grey could not be
   read, so the helper copy is full-strength text at 13px, and the link to the
   sibling screen (login <-> sign up) is a bordered button, not a grey phrase. */
.login-hint { font-size: 13px; line-height: 1.5; color: var(--text-primary); margin-top: 16px; text-align: center; }
.login-hint a:not(.login-alt) { color: var(--text-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.login-hint a.login-alt {
  display: block; padding: 11px 12px; border: 1px solid var(--line-hover); border-radius: 8px;
  color: var(--text-primary); font-size: 14px; font-weight: 700; text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.login-hint a.login-alt:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.login-hint code { color: var(--text-secondary); }

/* The fan account page's description. */
.login-card textarea {
  width: 100%; padding: 10px 12px; margin-bottom: 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text-primary); font-family: inherit; font-size: 13.5px; resize: vertical;
}
.login-card textarea.login-field-last { margin-bottom: 20px; }
