/* =====================================================================
   pages/login.css — sign-in, password change, and the 403 page.

   One centred card on the page grey. No split screen, no dark panel:
   the standard shape, done carefully.
   ===================================================================== */

.auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--c-page);
}

.auth__inner {
    width: 100%;
    max-width: 420px;
    animation: rise var(--t-slow) var(--ease-out) both;
}

/* -- Brand, above the card ------------------------------------------- */
.auth__head { text-align: center; margin-bottom: 22px; }

.lockup { display: inline-flex; align-items: center; gap: 12px; }

.lockup__mark {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--c-brand);
    color: #fff;
    font-size: 23px;
}

.lockup__logo { flex-shrink: 0; height: 44px; width: auto; object-fit: contain; }

.lockup__text { min-width: 0; text-align: left; }

.lockup__name {
    display: block;
    font-size: var(--fs-lg);
    font-weight: 600;
    letter-spacing: -.014em;
    color: var(--c-ink);
}

.lockup__sub {
    display: block;
    margin-top: 1px;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--c-ink-3);
}

/* -- Card -------------------------------------------------------------- */
.auth__card {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 32px;
}

.auth__title {
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -.02em;
    text-align: center;
}

.auth__lede {
    margin: 6px 0 24px;
    font-size: var(--fs-sm);
    line-height: 1.55;
    text-align: center;
    color: var(--c-ink-3);
}

.auth__submit { width: 100%; margin-top: 6px; }

/* -- Below the card ---------------------------------------------------- */
.auth__foot {
    margin-top: 20px;
    text-align: center;
    font-size: var(--fs-sm);
    line-height: 1.6;
    color: var(--c-ink-3);
}

.auth__contact {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.auth__contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-sm);
    color: var(--c-ink-3);
}
.auth__contact-item i { font-size: 14px; color: var(--c-ink-4); }
.auth__contact-item a { color: inherit; }
.auth__contact-item a:hover { color: var(--c-brand); text-decoration: none; }

/* -- Field with a leading icon ----------------------------------------- */
.field { position: relative; }

.field__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    line-height: 1;
    color: var(--c-ink-4);
    pointer-events: none;
    transition: color var(--t-fast) var(--ease);
}
.field:focus-within .field__icon { color: var(--c-brand); }

.field .form-control { padding-left: 40px; padding-right: 44px; }
.field .form-control-lg { padding-left: 43px; }

/* The reveal button sits inside the field, not beside it. */
.field__reveal {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: var(--radius-xs);
    background: transparent;
    color: var(--c-ink-4);
    font-size: 16px;
    cursor: pointer;
    transition: color var(--t-fast) var(--ease),
                background-color var(--t-fast) var(--ease);
}
.field__reveal:hover { color: var(--c-ink-2); background: var(--c-sunken); }

/* Caps Lock catches out more sign-ins than a wrong password does. */
.field__hint {
    display: none;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    font-size: var(--fs-sm);
    color: var(--c-warn);
}
.field__hint.is-shown { display: flex; animation: fade var(--t-fast) var(--ease) both; }

/* -- Centred variant: password change and 403 -------------------------- */
.auth-centre {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--c-page);
}
.auth-centre__inner { width: 100%; max-width: 448px; animation: rise var(--t-slow) var(--ease-out) both; }
.auth-centre__lockup { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-centre .card-x { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

@media (max-width: 575.98px) {
    .auth__card { padding: 26px 20px; }
}
