
  .hero.auth-hero {
    min-height: calc(100vh - var(--header-h));
    /* 100vh includes the address bar on mobile Safari/Chrome, so the hero
       is taller than the visible area until the browser chrome collapses.
       dvh tracks the actual visible viewport; vh above is just the fallback
       for browsers that don't support it yet. */
    min-height: calc(100dvh - var(--header-h));
    padding: 100px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* the hero photo runs right down to the footer: no white strip from the footer's top margin */
  footer.site { margin-top: 0; }

  .auth-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255,255,255,0.97);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 30px 70px rgba(4,14,26,0.4);
  }
  .auth-icon {
    width: 40px; height: 40px; margin: 0 auto 18px; color: var(--accent-text);
    display: flex; align-items: center; justify-content: center;
  }
  .auth-icon svg { width: 100%; height: 100%; }
  .auth-card h1 {
    font-family: var(--font-serif); font-weight: 600; font-size: 1.7rem;
    text-align: center; margin: 0 0 6px; color: var(--ink);
  }
  .auth-card p.intro { color: var(--ink-soft); text-align: center; font-size: 0.9rem; margin: 0 0 26px; }
  .auth-card form { display: flex; flex-direction: column; gap: 16px; }
  .auth-card label { font-size: 0.8rem; font-weight: 600; color: var(--ink); display: block; margin-bottom: 6px; }
  .auth-card input {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md);
    font-size: 0.95rem; font-family: inherit; color: var(--ink); background: var(--white);

  }
  .auth-card input:focus {
    border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(var(--bronze-light-rgb), 0.25);
  }
  /* wrong or missing entries (the owner chose the quiet option, design-options/login-errors): plain small text under the field and a thin red
     line on it; the server's answer is one line with a red bar. No box, no icon. */
  .auth-card .error {
    margin: 0 0 18px; padding: 2px 0 2px 12px; background: none; border: 0; border-left: 3px solid var(--danger-text); border-radius: 0;
    text-align: left; font-family: var(--font-sans); font-size: 0.88rem; font-weight: 500; line-height: 1.45; color: var(--danger-text);
    animation: auth-msg-in 220ms ease-out;
  }
  .auth-card .field-error {
    display: block; margin: 6px 0 0; font-family: var(--font-sans); font-size: 0.82rem; line-height: 1.4; color: var(--danger-text);
    animation: auth-msg-in 220ms ease-out;
  }
  .auth-card input[aria-invalid="true"], .auth-card input[aria-invalid="true"]:focus { border-color: var(--danger-text); box-shadow: none; }
  .auth-card button[aria-busy="true"] { opacity: 0.7; cursor: progress; }
  @keyframes auth-msg-in { from { opacity: 0; } to { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { .auth-card .error, .auth-card .field-error { animation: none; } }
  /* a plain one-line notice, in the manner of the Cloudflare dashboard: a small icon, the text left aligned, a thin blue edge */
  .auth-card .notice { display: flex; align-items: center; gap: 8px; text-align: left; font-size: 0.84rem; line-height: 1.4; color: var(--ink-prose); background: rgba(11, 37, 69, 0.045); border: 1px solid rgba(11, 37, 69, 0.12); border-radius: var(--radius-md); padding: 7px 10px; margin: 0 0 16px; }
  .auth-card .notice svg { width: 15px; height: 15px; flex: none; color: var(--ink-soft); }
  .auth-card button.btn-cta {
    margin-top: 6px; width: 100%; text-align: center;
    font-size: 0.95rem; padding: 13px 22px;
  }
  .auth-card .forgot {
    display: block; text-align: center; margin-top: 18px; font-size: 0.85rem;
    color: var(--ink-soft); text-decoration: none;
  }
  .auth-card .forgot:hover { color: var(--accent-text); }
  .auth-card .switch {
    text-align: center; margin-top: 14px; font-size: 0.85rem; color: var(--ink-soft);
  }
  .auth-card .switch a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
  .auth-card .switch a:hover { text-decoration: underline; }
  .auth-card p.body { color: var(--ink-soft); text-align: center; font-size: 0.92rem; line-height: 1.55; margin: 0 0 22px; }

  /* "Continue with Google" follows Google's branding guidelines for the light button: white, a 1px #747775 border, text #1F1F1F in Roboto Medium 14px,
     at least 40px high, 12px side padding and 10px between the G and the text; hover is a #303030 tint at 8%. The G uses Google's four colours. */
  .btn-google {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid #747775; border-radius: var(--radius-md);
    background: var(--white); color: #1f1f1f; text-decoration: none;
    font-family: Roboto, 'Roboto Fallback', Arial, sans-serif; font-size: 14px; font-weight: 500; line-height: 20px; margin-bottom: 20px;
  }
  .btn-google:hover { background: #f0f0f0; }
  .btn-google svg { width: 18px; height: 18px; }
  .auth-divider { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--ink-soft); font-size: 0.78rem; }
  .auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
