@charset "UTF-8";
/* ==========================================================================
   Sunrise Ticket System — authentication screens
   --------------------------------------------------------------------------
   Loaded after sunrise-ui.css, which supplies the design tokens and base
   reset. Deliberately independent of OneUI and Tailwind:

     • OneUI's stylesheet is 394 KB and exists to style an app shell this
       page does not have.
     • The Tailwind bundle the old login used comes from a Vite build dated
       April 2023, and `npm run *` only drives Mix — so any new utility class
       would simply not exist in it.

   Icons on these screens are inline SVG for the same reason.
   ========================================================================== */

/* The [hidden] attribute is only a `display:none` UA rule, so any explicit
   display here would silently defeat it — which it did: the Caps Lock hint
   and both password-eye icons rendered at once. Everything on this page that
   toggles via `hidden` needs this to hold. */
[hidden] { display: none !important; }

/* ==========================================================================
   Shell — split panel on desktop, single column on small screens
   ========================================================================== */
.su-auth {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    /* minmax(0, 1fr), never a bare 1fr: `1fr` means minmax(auto, 1fr), and
       that auto floor is the item's min-content width — which stopped the
       column shrinking below the form and pushed the inputs and the
       "Forgot your password?" link off-screen at 390px. */
    grid-template-columns: minmax(0, 1fr);
    /* Brand strip sizes to its content; the form takes the rest. With two
       `auto` rows, align-content:stretch split the spare height and inflated
       the strip to ~215px of empty navy. */
    grid-template-rows: auto minmax(0, 1fr);
    background-color: var(--su-canvas);
}
@media (min-width: 992px) {
    .su-auth {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        /* Single full-height row; tall content still grows the page because
           only min-height is set above. */
        grid-template-rows: minmax(0, 1fr);
    }
}

/* Grid items default to min-width:auto, which reintroduces the same floor. */
.su-auth__brand,
.su-auth__main { min-width: 0; }

/* ==========================================================================
   Brand panel
   ========================================================================== */
.su-auth__brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(160deg, #16243d 0%, var(--su-nav-bg) 45%, var(--su-nav-bg-deep) 100%);
    color: #fff;
    isolation: isolate;
}
@media (min-width: 992px) {
    .su-auth__brand { padding: 2.75rem 3.25rem; }
}

/* Two soft light sources; keeps the large navy field from reading as flat.
   Pointer-events off so they can never intercept a click. */
.su-auth__brand::before,
.su-auth__brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}
.su-auth__brand::before {
    top: -18%; right: -12%;
    width: 30rem; height: 30rem;
    background: radial-gradient(circle, rgba(45, 212, 191, .22) 0%, rgba(45, 212, 191, 0) 68%);
}
.su-auth__brand::after {
    bottom: -22%; left: -18%;
    width: 26rem; height: 26rem;
    background: radial-gradient(circle, rgba(28, 95, 214, .30) 0%, rgba(28, 95, 214, 0) 70%);
}

/* Brand lockup */
.su-auth__lockup {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    color: inherit;
}
.su-auth__logo {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    display: block;
    border-radius: 10px;
    object-fit: contain;
}
.su-auth__wordmark { line-height: 1.15; }
.su-auth__wordmark b {
    display: block;
    font-size: 1.0625rem;
    font-weight: 650;
    letter-spacing: -.015em;
}
.su-auth__wordmark span {
    display: block;
    font-size: .6875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .58);
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* Pitch — desktop only; on mobile the panel is just a header strip. */
.su-auth__pitch { display: none; }
@media (min-width: 992px) {
    .su-auth__pitch {
        display: block;
        margin: auto 0;
        padding: 2.5rem 0;
        max-width: 30rem;
    }
}
/* Colour must be explicit. sunrise-ui.css styles bare `h1..h6` with the dark
   app foreground, and an element-level rule beats the white inherited from
   .su-auth__brand — which rendered this navy-on-navy. */
.su-auth__headline {
    margin: 0 0 .875rem;
    color: #fff;
    font-size: 2rem;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -.028em;
}
.su-auth__brand h1,
.su-auth__brand h2,
.su-auth__brand h3 { color: #fff; }
.su-auth__headline em {
    font-style: normal;
    background: linear-gradient(90deg, #6ee7d7 0%, #7cb2ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #6ee7d7; /* fallback where background-clip:text is unsupported */
}
.su-auth__sub {
    margin: 0 0 2rem;
    font-size: .9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .66);
}

.su-auth__points { list-style: none; margin: 0; padding: 0; display: grid; gap: .875rem; }
.su-auth__point {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: .875rem;
    color: rgba(255, 255, 255, .82);
}
.su-auth__point-icon {
    flex: 0 0 auto;
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #8ecfff;
}
.su-auth__point-icon svg { width: 15px; height: 15px; display: block; }

.su-auth__legal {
    display: none;
    font-size: .75rem;
    color: rgba(255, 255, 255, .4);
}
@media (min-width: 992px) { .su-auth__legal { display: block; } }

/* ==========================================================================
   Form panel
   ========================================================================== */
.su-auth__main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1.25rem 2.5rem;
    background: var(--su-surface);
}
@media (min-width: 992px) { .su-auth__main { padding: 3rem; } }

.su-auth__form-wrap {
    width: 100%;
    /* min() so the 25rem cap can never exceed the viewport on a narrow phone */
    max-width: min(25rem, 100%);
    margin: 0 auto;
}

.su-auth__title {
    margin: 0 0 .375rem;
    font-size: 1.5rem;
    font-weight: 650;
    letter-spacing: -.022em;
    color: var(--su-fg);
}
.su-auth__lede {
    margin: 0 0 1.75rem;
    font-size: .875rem;
    color: var(--su-fg-muted);
}

/* ---- Fields -------------------------------------------------------------- */
.su-field { margin-bottom: 1.125rem; }
.su-field__label {
    display: block;
    margin-bottom: .375rem;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--su-fg);
}
.su-field__label .su-req::after { content: " *"; color: var(--su-danger); }

/* An input with a leading icon and (optionally) a trailing button */
.su-input-wrap { position: relative; display: block; }
.su-input-wrap__icon {
    position: absolute;
    top: 50%; left: .8125rem;
    transform: translateY(-50%);
    width: 17px; height: 17px;
    color: var(--su-fg-subtle);
    pointer-events: none;
    transition: color var(--su-t);
}
.su-input-wrap__icon svg { width: 100%; height: 100%; display: block; }

.su-input {
    width: 100%;
    height: 46px;
    padding: 0 .875rem 0 2.6875rem;
    border: 1px solid var(--su-border-strong);
    border-radius: var(--su-r);
    background-color: var(--su-surface);
    color: var(--su-fg);
    font-family: inherit;
    font-size: .9375rem;
    line-height: 1.5;
    transition: border-color var(--su-t), box-shadow var(--su-t), background-color var(--su-t);
    -webkit-appearance: none;
    appearance: none;
}
.su-input::placeholder { color: var(--su-fg-subtle); opacity: 1; }
.su-input:hover:not(:focus) { border-color: var(--su-fg-subtle); }
.su-input:focus {
    outline: 0;
    border-color: var(--su-brand);
    box-shadow: var(--su-ring);
}
.su-input-wrap:focus-within .su-input-wrap__icon { color: var(--su-brand); }

/* Room for the reveal button */
.su-input--with-action { padding-right: 3rem; }

/* Error state */
.su-input.is-invalid { border-color: var(--su-danger); }
.su-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220, 63, 77, .16); }
.su-input-wrap.is-invalid .su-input-wrap__icon { color: var(--su-danger); }

/* Chrome's autofill paints its own yellow; keep it on-brand and readable. */
.su-input:-webkit-autofill,
.su-input:-webkit-autofill:hover,
.su-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--su-fg);
    -webkit-box-shadow: 0 0 0 60rem var(--su-brand-soft) inset;
    box-shadow: 0 0 0 60rem var(--su-brand-soft) inset;
    caret-color: var(--su-fg);
}

/* Reveal password */
.su-reveal {
    position: absolute;
    top: 50%; right: .375rem;
    transform: translateY(-50%);
    width: 34px; height: 34px;
    display: grid; place-items: center;
    padding: 0;
    border: 0;
    border-radius: var(--su-r-sm);
    background: transparent;
    color: var(--su-fg-subtle);
    cursor: pointer;
    transition: background-color var(--su-t), color var(--su-t);
}
.su-reveal:hover { background: var(--su-surface-3); color: var(--su-fg); }
.su-reveal:focus-visible { outline: 2px solid var(--su-brand); outline-offset: 1px; }
.su-reveal svg { width: 17px; height: 17px; display: block; }

/* Field-level message */
.su-field__error {
    display: flex;
    align-items: flex-start;
    gap: .375rem;
    margin-top: .4375rem;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--su-danger);
}
.su-field__error svg { flex: 0 0 auto; width: 14px; height: 14px; margin-top: .125rem; }

/* Caps Lock nudge — mistyped passwords are the most common support call. */
.su-field__hint {
    display: flex;
    align-items: center;
    gap: .375rem;
    margin-top: .4375rem;
    font-size: .8125rem;
    font-weight: 500;
    color: #a9640c;
}
.su-field__hint svg { flex: 0 0 auto; width: 14px; height: 14px; }

/* ---- Row: remember + forgot --------------------------------------------- */
.su-auth__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: 0 0 1.5rem;
}

.su-check { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; user-select: none; }
.su-check input {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}
.su-check__box {
    flex: 0 0 auto;
    width: 18px; height: 18px;
    display: grid; place-items: center;
    border: 1px solid var(--su-border-strong);
    border-radius: 5px;
    background: var(--su-surface);
    color: #fff;
    transition: background-color var(--su-t), border-color var(--su-t);
}
.su-check__box svg { width: 11px; height: 11px; opacity: 0; transition: opacity var(--su-t); }
.su-check input:checked + .su-check__box {
    background: var(--su-brand);
    border-color: var(--su-brand);
}
.su-check input:checked + .su-check__box svg { opacity: 1; }
.su-check input:focus-visible + .su-check__box {
    outline: 2px solid var(--su-brand);
    outline-offset: 2px;
}
.su-check__text { font-size: .8438rem; color: var(--su-fg-muted); }

.su-auth__link {
    font-size: .8438rem;
    font-weight: 550;
    color: var(--su-brand);
    text-decoration: none;
    border-radius: 4px;
}
.su-auth__link:hover { color: var(--su-brand-dark); text-decoration: underline; }
.su-auth__link:focus-visible { outline: 2px solid var(--su-brand); outline-offset: 2px; }

/* ---- Submit -------------------------------------------------------------- */
.su-btn-submit {
    position: relative;
    width: 100%;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 0 1rem;
    border: 0;
    border-radius: var(--su-r);
    background: var(--su-brand);
    color: #fff;
    font-family: inherit;
    font-size: .9375rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(16, 27, 47, .12);
    transition: background-color var(--su-t), box-shadow var(--su-t), transform var(--su-t);
}
.su-btn-submit:hover { background: var(--su-brand-strong); }
.su-btn-submit:active { transform: translateY(1px); }
.su-btn-submit:focus-visible { outline: 2px solid var(--su-brand-dark); outline-offset: 2px; }
.su-btn-submit svg { width: 16px; height: 16px; }

/* Submitting: block a double post without hiding what is happening. */
.su-btn-submit[data-loading="true"] { pointer-events: none; background: var(--su-brand-strong); }
.su-btn-submit[data-loading="true"] .su-btn-submit__label,
.su-btn-submit[data-loading="true"] svg { visibility: hidden; }
.su-btn-submit[data-loading="true"]::after {
    content: "";
    position: absolute;
    width: 18px; height: 18px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: su-auth-spin .65s linear infinite;
}
@keyframes su-auth-spin { to { transform: rotate(360deg); } }

/* ---- Status banner (session flash) -------------------------------------- */
.su-auth__status {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-bottom: 1.25rem;
    padding: .75rem .875rem;
    border: 1px solid #b8e7d4;
    border-radius: var(--su-r);
    background: var(--su-success-soft);
    color: #0d6b49;
    font-size: .8438rem;
    font-weight: 500;
}
.su-auth__status svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: .0625rem; }

/* ---- Small-screen brand strip ------------------------------------------- */
.su-auth__mobile-foot {
    margin-top: 2rem;
    font-size: .75rem;
    color: var(--su-fg-subtle);
    text-align: center;
}
@media (min-width: 992px) { .su-auth__mobile-foot { display: none; } }

@media (prefers-reduced-motion: reduce) {
    .su-btn-submit:active { transform: none; }
    .su-btn-submit[data-loading="true"]::after { animation-duration: 2s; }
}
