/* ==========================================================================
   Account forms — "Depth of Field" page pieces on top of fl-auth.css:
   change email / number / password, college verification, contact,
   report + report email, waitlist.
   Layered + !important on visual properties only (see DESIGN.md §7).
   ========================================================================== */

@layer fl-skin {

/* --------------------------------------------------------------------------
   Change number: the confirm step — the new number, then a plain warning
   -------------------------------------------------------------------------- */
.terminal-container .confirmation-details {
    display: grid !important;
    gap: 0 !important;
    margin: 0 0 18px !important;
    padding: 4px 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

.terminal-container .confirmation-details .detail-line {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 13px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--fl-line) !important;
    background: none !important;
}

.terminal-container .confirmation-details .detail-label {
    font-family: var(--fl-font-machine) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    text-shadow: none !important;
    color: var(--fl-ink-3) !important;
}

/* the number itself is the member's: UI face, full ink */
.terminal-container .confirmation-details .detail-value {
    font-family: var(--fl-font-ui) !important;
    font-size: 1.0625rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em !important;
    font-variant-numeric: tabular-nums;
    text-transform: none !important;
    text-shadow: none !important;
    color: var(--fl-ink) !important;
}

.terminal-container .confirmation-details .detail-line + .detail-line .detail-value {
    font-family: var(--fl-font-machine) !important;
    font-size: 11px !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: var(--fl-success) !important;
}

.terminal-container .confirmation-warning {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
}

.terminal-container .confirmation-warning p {
    position: relative;
    margin: 0 !important;
    padding: 12px 16px 12px 34px !important;
    border: 1px solid color-mix(in srgb, var(--fl-warning) 40%, transparent) !important;
    border-radius: var(--fl-r-md) !important;
    background: color-mix(in srgb, var(--fl-warning) 9%, transparent) !important;
    font-family: var(--fl-font-ui) !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-align: left !important;
    text-shadow: none !important;
    color: var(--fl-ink) !important;
}

.terminal-container .confirmation-warning p::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 19px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fl-warning);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--fl-warning) 16%, transparent);
}

/* --------------------------------------------------------------------------
   College verification — the questionnaire's flow (fl-questionnaire.css),
   with a mono label, six full-width code squares and soft notes
   -------------------------------------------------------------------------- */
html body .question-page > label[for="collegeEmail"] {
    display: block !important;
    margin: 14px 0 10px !important;
    padding: 0 !important;
    font-family: var(--fl-font-machine) !important;
    font-size: 10.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    text-align: left !important;
    text-shadow: none !important;
    color: var(--fl-ink-3) !important;
}

html body #verificationPage .verification-info {
    margin: 2px 0 0 !important;
    font-size: 0.9375rem !important;
    color: var(--fl-ink-3) !important;
    overflow-wrap: anywhere;
}

html body #verificationPage .code-input-container {
    width: 100% !important;
    max-width: none !important;
    margin: 26px 0 0 !important;
    padding: 0 !important;
}

html body #verificationPage .code-squares {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
}

html body #verificationPage .code-square {
    width: 100% !important;
    min-width: 0 !important;
    height: 60px !important;
    margin: 0 !important;
    border-radius: 14px !important;
    font-size: 1.75rem !important;
    transition: border-color var(--fl-dur-2) var(--fl-ease-out), box-shadow var(--fl-dur-3) var(--fl-ease-out) !important;
}

html body #verificationPage .code-square.filled { border-color: var(--fl-line-3) !important; }

html body #verificationPage .code-square.error {
    border-color: color-mix(in srgb, var(--fl-danger) 60%, transparent) !important;
    background: var(--fl-danger-wash) !important;
}

/* the page's notes: a soft card with a dot, like every short form (display stays with the script) */
html body .question-page :is(#emailError, #emailSuccess, #codeError, #codeSuccess) {
    position: relative;
    margin: 16px 0 0 !important;
    padding: 12px 16px 12px 34px !important;
    border: 1px solid color-mix(in srgb, var(--fl-danger) 35%, transparent) !important;
    border-radius: var(--fl-r-md) !important;
    background: var(--fl-danger-wash) !important;
    box-shadow: none !important;
    font-family: var(--fl-font-ui) !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--fl-ink) !important;
}

html body .question-page :is(#emailSuccess, #codeSuccess) {
    border-color: color-mix(in srgb, var(--fl-success) 35%, transparent) !important;
    background: var(--fl-success-wash) !important;
}

html body .question-page :is(#emailError, #emailSuccess, #codeError, #codeSuccess)::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 19px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fl-danger);
    box-shadow: 0 0 0 4px var(--fl-danger-wash);
}

html body .question-page :is(#emailSuccess, #codeSuccess)::before {
    background: var(--fl-success);
    box-shadow: 0 0 0 4px var(--fl-success-wash);
}

html body #verificationPage .resend-container {
    margin: 18px 0 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

html body #verificationPage .terminal-button-link {
    min-height: 44px !important;
    padding: 0 8px !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    font-family: var(--fl-font-ui) !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
    color: var(--fl-ink-2) !important;
    text-decoration: underline !important;
    text-decoration-color: color-mix(in srgb, var(--fl-coral) 55%, transparent) !important;
    text-decoration-thickness: 1.5px !important;
    text-underline-offset: 4px !important;
    cursor: pointer;
    transition: color var(--fl-dur-2) ease !important;
}

@media (hover: hover) {
    html body #verificationPage .terminal-button-link:hover { color: var(--fl-ink) !important; }
}

html body #verificationPage .terminal-button-link:disabled { color: var(--fl-ink-4) !important; cursor: default; }

html body #verificationPage .terminal-button-link:focus-visible {
    outline: 2px solid var(--fl-blue) !important;
    outline-offset: 3px !important;
    border-radius: 8px !important;
}

/* (the sheet's offset under the fixed pills lives in fl-chrome.css) */

/* --------------------------------------------------------------------------
   Contact, report, report email: one sheet like every short form — the
   legacy page wrappers stop centring themselves in a full-height box
   -------------------------------------------------------------------------- */
.terminal-container :is(#contact-container, #report-container) {
    /* legacy pins the report wrapper (position: fixed) — back into the sheet */
    position: relative !important;
    inset: auto !important;
    overflow: visible !important;
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--fl-ink) !important;
}

.terminal-container :is(.contact-page, .report-page) {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--fl-ink) !important;
    text-align: left !important;
}

.terminal-container :is(.contact-page, .report-page) .input-group { margin-bottom: 20px !important; }

/* the counter tucks under its box */
.terminal-container .input-group:has(.terminal-textarea) { gap: 8px !important; }

.terminal-container :is(.contact-page, .report-page) .message-area + .action-buttons { margin-top: 26px !important; }

/* --------------------------------------------------------------------------
   Waitlist: the form, then the thank-you
   -------------------------------------------------------------------------- */
.terminal-container .waitlist-content {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
}

.terminal-container #waitlistSuccess {
    flex-direction: column !important;
    align-items: stretch !important;
}

.terminal-container .waitlist-success .section-header { margin-bottom: 14px !important; }

.terminal-container .success-content {
    margin: 0 0 4px !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    text-align: left !important;
}

.terminal-container .success-content .success-text {
    margin: 0 0 10px !important;
    padding: 0 !important;
    font-family: var(--fl-font-ui) !important;
    font-size: var(--fl-text-body-l) !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-align: left !important;
    text-shadow: none !important;
    color: var(--fl-ink) !important;
}

.terminal-container .success-content .success-subtext {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--fl-font-ui) !important;
    font-size: 0.9375rem !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-align: left !important;
    text-shadow: none !important;
    color: var(--fl-ink-3) !important;
}

/* the waitlist's email check sits under the field, full width */
.terminal-container .waitlist-content .email-error { margin: 0 !important; }

/* college verification: on wide screens the step sits a little down the
   page, like the other sheets, instead of against the top edge */
@media (min-width: 601px) {
    html body #questionnaire-container:has(> #emailInputPage) {
        padding-top: clamp(64px, 14vh, 150px) !important;
    }
}

} /* @layer fl-skin */

/* --------------------------------------------------------------------------
   Moved from the pages' inline <style> blocks (session 4). Unlayered, like
   the originals; the page scope sits in :where() so each rule keeps the
   original's specificity (the legacy plumbing at the top of fl-chrome.css still outranks them where it did).
   -------------------------------------------------------------------------- */

/* contact, report, report email: no double-tap zoom, no text selection
   outside the fields (behaviour only) */
:where(html:has(:is(#contact-container, #report-container))),
:where(html:has(:is(#contact-container, #report-container))) body {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

/* contact, report, report email: the page column stacks its parts (fl-forms
   above sizes it; these are the properties it leaves alone) */
#contact-container,
#report-container {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    text-align: left;
    z-index: 1051;
}

.contact-page,
.report-page {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* their notes start hidden; the page script shows them */
:where(html:has(:is(#contact-container, #report-container))) .message-area { display: none; }
:where(html:has(#contact-container)) .error-text { display: none; }

/* report, report email: the two top pills (fl-chrome.css draws and places
   them); here they only stay above the page */
:where(html:has(#report-container)) body > :is(.back-button, .home-button) {
    z-index: 1100 !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* college verification: its notes start hidden; the page script shows them
   (scoped: the other forms add and remove theirs) */
:where(html:has(#emailInputPage)) :is(.error-message, .success-message) { display: none; }
:where(html:has(#emailInputPage)) .college-email-input { margin-bottom: 15px; }

/* college verification: the eyebrow above each step's title (session 4) */
#questionnaire-container .question-page > .fl-eyebrow { margin: 0 0 14px; }

/* --------------------------------------------------------------------------
   Session 8 (fork B3, desktop review #20): college verification was a bare
   form on the ground while every sibling short form (log in, change-*) is a
   sheet - its active step now gets the same sheet (fl-auth's .terminal-content
   values). Only this page: scoped by its first step.
   -------------------------------------------------------------------------- */
@layer fl-skin {
    html body #questionnaire-container:has(> #emailInputPage) > .question-page.active {
        box-sizing: border-box !important;
        width: calc(100% - 2 * var(--fl-gutter)) !important;
        max-width: 460px !important;
        margin: clamp(24px, 11vh, 128px) auto 48px !important;
        padding: 34px 34px 30px !important;
        background: var(--fl-surface) !important;
        border: 1px solid var(--fl-line) !important;
        border-radius: calc(var(--fl-r-xl) + 2px) !important;
        box-shadow: var(--fl-highlight), var(--fl-shadow-3) !important;
    }
    @media (max-width: 480px) {
        html body #questionnaire-container:has(> #emailInputPage) > .question-page.active {
            padding: 28px 22px 24px !important;
        }
    }
}
