/* Sign in and recover access (Paper: "Account — Sign in (panel)", "Account — Recover access (panel)").
   The panel, fields, buttons and portal preview are the sign-up ones from signup.css;
   this file holds only what these two pages add. */

/* Both pages keep sign-up step 1's tighter rhythm. */
.ac-form .su-top { gap: 36px; }
.ac-form .su-step { gap: 22px; }
.ac-form .su-fields { gap: 16px; }

/* The password label shares its row with "Forgot access?". */
.ac-field-link { position: relative; }
.ac-forgot { position: absolute; right: 0; top: 0; font-size: 12px; line-height: 16px; font-weight: 500; text-decoration: underline 1px transparent; text-underline-position: from-font; transition: text-decoration-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .ac-forgot:hover { text-decoration-color: currentColor; } }
.ac-forgot:focus-visible { text-decoration-color: currentColor; }
/* One line tall; the pseudo-element reaches above and below for a 44px target. */
.ac-forgot::after { content: ""; position: absolute; inset: -20px -8px -8px; }
.ac-forgot:focus-visible { border-radius: 4px; }

.ac-new { font-size: 14px; line-height: 18px; font-weight: 500; color: var(--muted); }
.ac-new .su-link { color: var(--ink); }
.su-next.ac-wide { width: 216px; }

/* ───────── Preview ───────── */
.ac-pv .pv-access span { text-wrap: balance; }
.ac-pv .pv-tags:empty { display: none; }

/* A returning client's portal, shown but not yet open: dimmed, with one line saying why. */
.ac-locked { position: relative; display: flex; flex-direction: column; }
.ac-dim { display: flex; flex-direction: column; gap: 20px; opacity: 0.55; pointer-events: none; transition: opacity 350ms var(--ease-out); }
.ac-lock-note { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px 14px; border: 1px solid var(--su-glass-line); border-radius: 999px; background: var(--su-card); box-shadow: 0 8px 24px var(--su-shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 13px; line-height: 16px; font-weight: 600; color: var(--ink); white-space: nowrap; transform: translate(-50%, -50%); transition: opacity 250ms ease-out, transform 350ms var(--ease-out); }
/* Signing in opens the lock and brings the portal up to full strength, just before the page changes. */
.pv-window.is-open .ac-dim { opacity: 1; }
.pv-window.is-open .ac-lock-note { opacity: 0; transform: translate(-50%, -50%) scale(0.96); }

@media (max-width: 639px) {
  .su-next.ac-wide { width: auto; }
}
