/* Login v2 (owner-approved AFTER, Alex 2026-09-28): the yellow/black restyle of the
   shared /login page (hosts and staff alike). Relies on host_v2.css's tokens (the
   --v2-* family) and the Outfit @font-face it declares — this sheet adds neither.
   Section 1 ("Login") of
   standard-designlab-preview-c5e57f3804.s3.us-east-1.amazonaws.com/canary/comparisons/latest.html.

   Dark only, no blur()/backdrop-filter (DS3 motion rule): the only glow is the
   decorative radial-gradient behind the mark, never a control. Every control is
   >= 44px. The single primary (yellow) control is "Sign in with STANDARD"; the
   password fallback's "Log in" is a quiet outlined button UNLESS the fallback is the
   page's only way in (.login-fallback--only), in which case it takes the yellow
   treatment instead — the page never shows two yellow actions at once. An error is
   words plus the existing role=alert, never a red/green paint (CAN-D5). */

.login-v2-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  box-sizing: border-box;
}
.login-v2-card {
  width: min(100%, 420px);
  background: var(--v2-card);
  border: 1px solid var(--v2-line);
  border-radius: 28px;
  padding: 36px 32px 28px;
}

.login-v2-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 30px;
}
/* decorative only: the glow sits behind the bird mark, never a control */
.login-v2-brand::before {
  content: "";
  position: absolute;
  left: -28px;
  top: -28px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 216, 24, .18), transparent);
  pointer-events: none;
}
.login-v2-mark { position: relative; width: 48px; height: 48px; display: block; }
.login-v2-word { position: relative; display: block; height: 20px; width: auto; }
.login-v2-h1 { margin: 0; font: inherit; }
.login-v2-kicker {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--v2-muted);
  font-weight: 400;
}

.login-sso-form { margin: 0; }
.login-sso-form button.login-sso {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--v2-yellow);
  color: var(--v2-yellow-ink);
  font: 500 16px "Outfit", system-ui, sans-serif;
  cursor: pointer;
}
/* .v2-body already gives every <a>/<button> a yellow focus-visible ring (host_v2.css);
   <summary> and <input> are neither, so this page adds their own. */
.login-fallback > summary:focus-visible,
.login-form input:focus-visible {
  outline: 2px solid var(--v2-yellow);
  outline-offset: 3px;
}

.login-fallback {
  margin-top: 18px;
  border-top: 1px solid var(--v2-line);
  padding-top: 6px;
}
.login-fallback > summary {
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--v2-muted);
  font-size: 14.5px;
  cursor: pointer;
}
.login-fallback > summary::-webkit-details-marker { display: none; }
.login-fallback > summary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s ease;
}
.login-fallback[open] > summary::before { transform: rotate(45deg); }

.login-error {
  /* CAN-D5: the sentence and role=alert carry the state; no colour of its own. */
  margin: 0 0 8px;
  color: var(--v2-text);
  font-size: 14px;
}

.login-form {
  display: grid;
  gap: 8px;
  padding: 6px 0 4px;
}
.login-form label {
  font-size: 13.5px;
  color: var(--v2-muted);
}
.login-form input {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 14px;
  /* --v2-edge, landing in a parallel PR (owner, 2026-09-28): hardcoded here per that
     PR's instruction; >= 3:1 against --v2-card-2. */
  border: 1px solid #7a7a75;
  background: var(--v2-card-2);
  color: var(--v2-text);
  font: 400 16px "Outfit", system-ui, sans-serif;
}
.login-form button {
  justify-self: start;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #7a7a75; /* --v2-edge, see input rule above */
  background: transparent;
  color: var(--v2-text);
  font: 400 14px "Outfit", system-ui, sans-serif;
  cursor: pointer;
}
/* /login?as=<handle> (#445): the admin's one static line. It echoes up to 100
   characters; an unbroken one scrolled the page sideways at 390 (#445, N1, 2026-09-27),
   so it wraps inside the card. Words only, --v2-muted on --v2-card (7.1:1). Moved here
   from ds3-page.css when #489 stopped loading that sheet on /login (2026-09-28). */
#login-as-note {
  margin: 0;
  font-size: 13.5px;
  color: var(--v2-muted);
  overflow-wrap: anywhere;
}
/* No STANDARD button configured: the password is the page's only way in, so "Log in"
   takes the yellow primary treatment (mockup note: "the build should then give
   'Log in' the yellow treatment") -- still exactly one yellow control on the page. */
.login-fallback--only .login-form button {
  color: var(--v2-yellow-ink);
  background: var(--v2-yellow);
  border-color: var(--v2-yellow);
}

@media (max-width: 480px) {
  .login-v2-card { padding: 28px 22px 22px; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-fallback > summary::before { transition: none; }
}
