:root {
    color-scheme: light;
    --auth-bg: #edf2f5;
    --auth-panel: #ffffff;
    --auth-panel-soft: #f7f9fb;
    --auth-border: #d8e2ea;
    --auth-border-strong: #b6c6d3;
    --auth-text: #162235;
    --auth-muted: #607187;
    --auth-subtle: #8998aa;
    --auth-primary: #087fae;
    --auth-primary-hover: #05698f;
}

body.auth-page {
    background: var(--auth-bg);
    color: var(--auth-text);
}

.auth-shell {
    position: relative;
    display: block;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--auth-bg);
}

.auth-visual-side {
    position: absolute;
    inset: 0 0 auto;
    z-index: 0;
    display: block;
    width: 100%;
    height: 220px;
    border: 0;
}

.auth-visual-photo {
    object-position: center 38%;
}

.auth-visual-overlay {
    background: rgba(7, 28, 43, .46);
}

.auth-visual-content {
    display: none;
}

.auth-form-side {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    min-height: 100dvh;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
    background: transparent;
    padding: 128px 14px 24px;
}

.auth-form-side::before {
    display: none;
}

.auth-form-wrap {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid rgba(210, 221, 231, .94);
    border-radius: 8px;
    background: rgba(255, 255, 255, .99);
    box-shadow: 0 22px 54px rgba(23, 43, 61, .16);
    padding: 24px 20px 20px;
}

.auth-brand {
    color: var(--auth-text);
}

.auth-brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-color: #bddde9;
    border-radius: 8px;
    background: #e9f7fb;
}

.auth-brand-mark img {
    width: 37px;
    height: 37px;
}

.auth-brand-name {
    color: var(--auth-text);
    font-size: 19px;
}

.auth-brand-caption,
.auth-eyebrow,
.auth-divider,
.auth-visual-kicker {
    letter-spacing: 0;
}

.auth-brand-caption,
.auth-eyebrow {
    color: #087fae;
}

.auth-mobile-status {
    display: inline-flex;
    width: max-content;
    margin-top: 18px;
    border: 1px solid #d6e3e9;
    border-radius: 999px;
    background: #f5fafc;
    color: #52677b;
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 700;
}

.auth-status-dot {
    width: 7px;
    height: 7px;
    flex-basis: 7px;
    box-shadow: none;
}

.auth-heading {
    margin-top: 22px;
}

.auth-heading h1 {
    color: var(--auth-text);
    font-size: 30px;
    line-height: 1.12;
}

.auth-heading p {
    max-width: 420px;
    margin-top: 9px;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.55;
}

.auth-form {
    gap: 14px;
    margin-top: 22px;
}

.auth-label {
    color: #35465b;
    font-size: 12px;
}

.auth-input-icon {
    display: none;
}

.auth-input {
    min-height: 50px;
    border-color: var(--auth-border);
    border-radius: 8px;
    background: #f7f9fb;
    color: var(--auth-text);
    padding: 12px 44px 12px 14px;
}

.auth-input::placeholder {
    color: #97a5b6;
}

.auth-input:hover {
    border-color: var(--auth-border-strong);
}

.auth-input:focus {
    border-color: var(--auth-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(8, 127, 174, .11);
}

.auth-input-toggle {
    color: #71849a;
}

.auth-input-toggle:hover,
.auth-input-toggle:focus-visible {
    background: #e9f1f5;
    color: var(--auth-primary);
}

.auth-text-link {
    color: #087fae;
}

.auth-check {
    color: #475a70;
}

.auth-captcha-wrap {
    min-height: 0;
    justify-content: flex-start;
    overflow: visible;
    border: 0;
    background: transparent;
    padding: 0;
}

.auth-captcha-scale {
    width: 304px;
    max-width: 100%;
    transform-origin: left center;
}

.auth-action-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
}

.auth-primary-button {
    min-height: 50px;
    border-color: var(--auth-primary);
    background: var(--auth-primary);
    box-shadow: none;
}

.auth-primary-button:hover {
    border-color: var(--auth-primary-hover);
    background: var(--auth-primary-hover);
}

.auth-passkey-button {
    width: 100%;
    min-height: 48px;
    gap: 9px;
    border-color: #c7dce7;
    background: #eff8fb;
    color: #116b8d;
    font-size: 14px;
    font-weight: 800;
}

.auth-passkey-button i {
    font-size: 20px;
}

.auth-passkey-button:hover,
.auth-passkey-button:focus-visible {
    border-color: #93bfd1;
    background: #e5f3f8;
    color: #075d7d;
}

.auth-divider {
    color: #8998aa;
}

.auth-google-button {
    min-height: 48px;
    border-color: var(--auth-border);
    background: #ffffff;
    color: #26374c;
    box-shadow: none;
}

.auth-google-button:hover {
    border-color: var(--auth-border-strong);
    background: #f7f9fb;
}

.auth-google-mark {
    display: inline-grid;
    width: 20px;
    height: 20px;
    place-items: center;
    color: #174ea6;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.auth-secondary-button {
    min-height: auto;
    border: 0;
    background: transparent;
    color: #607187;
    padding: 7px 12px;
    font-size: 12px;
}

.auth-secondary-button:hover {
    background: #f2f6f8;
    color: #27715b;
}

.auth-help {
    margin-top: 16px;
    color: #8795a7;
}

.auth-help a {
    color: #40546b;
}

.auth-help a:hover {
    color: var(--auth-primary);
}

.auth-copyright {
    margin-top: 16px;
    color: #92a0b1;
}

.auth-visual-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 22px;
    color: #dce9ef;
    font-size: 12px;
    font-weight: 700;
}

.auth-visual-points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-visual-points b {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, .14);
}

.auth-modal-backdrop {
    background: rgba(15, 23, 42, .52);
}

.auth-modal-card {
    border-color: var(--auth-border);
    background: #ffffff;
}

.auth-modal-title,
.auth-modal-card .text-white {
    color: var(--auth-text) !important;
}

.auth-modal-description,
.auth-modal-card .text-gray-400,
.auth-modal-card .text-gray-500 {
    color: var(--auth-muted) !important;
}

.auth-modal-input,
.auth-2fa-input {
    border-color: var(--auth-border);
    background: #f7f9fb;
    color: var(--auth-text);
}

.auth-method-option {
    border-color: var(--auth-border);
    background: #f7f9fb;
    color: #26374c;
}

.auth-method-option:hover {
    border-color: var(--auth-border-strong);
    background: #ffffff;
}

.swal2-popup {
    color: var(--auth-text);
    background: #ffffff;
}

@media (max-width: 420px) {
    .auth-form-side {
        padding: 112px 10px 18px;
    }

    .auth-form-wrap {
        padding: 22px 16px 18px;
    }

    .auth-heading h1 {
        font-size: 28px;
    }

    .auth-captcha-scale {
        transform: scale(.88);
    }
}

@media (min-width: 1024px) {
    .auth-shell {
        height: 100dvh;
        min-height: 720px;
    }

    .auth-visual-side {
        inset: 0;
        height: 100%;
    }

    .auth-visual-photo {
        object-position: center center;
    }

    .auth-visual-overlay {
        background: rgba(6, 25, 39, .6);
    }

    .auth-visual-content {
        display: flex;
        justify-content: flex-end;
        padding: 64px max(590px, 43vw) 64px 64px;
    }

    .auth-visual-kicker {
        border: 0;
        border-radius: 6px;
        background: rgba(8, 99, 129, .74);
        color: #ffffff;
        padding: 7px 10px;
    }

    .auth-visual-content h2 {
        max-width: 650px;
        color: #ffffff;
        font-size: 44px;
        line-height: 1.08;
    }

    .auth-visual-content > p {
        max-width: 590px;
        color: #d8e4eb;
    }

    .auth-form-side {
        position: absolute;
        inset: 0;
        min-height: 100%;
        align-items: center;
        justify-content: flex-end;
        overflow-y: auto;
        padding: 34px 54px;
        pointer-events: none;
    }

    .auth-form-wrap {
        max-width: 500px;
        max-height: calc(100dvh - 68px);
        margin: auto 0 auto auto;
        overflow-y: auto;
        padding: 26px 28px 22px;
        pointer-events: auto;
        scrollbar-width: thin;
    }

    .auth-mobile-status {
        display: none;
    }
}

@media (min-width: 1440px) {
    .auth-form-side {
        padding-right: 74px;
        padding-left: 74px;
    }

    .auth-visual-content {
        padding: 76px max(650px, 42vw) 76px 76px;
    }

    .auth-visual-content h2 {
        font-size: 48px;
    }
}

/*
 * Final browser composition. The base stylesheet still serves Android and
 * contains legacy browser rules, so these equally-specific selectors keep the
 * browser experience deterministic without changing the Android surface.
 */
body.auth-page:not(.auth-surface-android-twa) .auth-shell {
    position: relative;
    display: block;
    width: 100%;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--auth-bg);
}

body.auth-page:not(.auth-surface-android-twa) .auth-visual-side {
    position: absolute;
    inset: 0 0 auto;
    z-index: 0;
    display: block;
    width: 100%;
    height: 220px;
    border: 0;
    background: #102a39;
}

body.auth-page:not(.auth-surface-android-twa) .auth-visual-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
}

body.auth-page:not(.auth-surface-android-twa) .auth-visual-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 28, 43, .46);
}

body.auth-page:not(.auth-surface-android-twa) .auth-visual-content {
    display: none;
}

body.auth-page:not(.auth-surface-android-twa) .auth-form-side {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    min-height: 100dvh;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
    background: transparent;
    padding: 128px 14px 24px;
}

body.auth-page:not(.auth-surface-android-twa) .auth-form-side::before {
    display: none;
    content: none;
}

body.auth-page:not(.auth-surface-android-twa) .auth-form-wrap {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid rgba(210, 221, 231, .94);
    border-radius: 8px;
    background: rgba(255, 255, 255, .99);
    box-shadow: 0 22px 54px rgba(23, 43, 61, .16);
    padding: 24px 20px 20px;
}

body.auth-page:not(.auth-surface-android-twa) .auth-brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
}

body.auth-page:not(.auth-surface-android-twa) .auth-brand-mark img {
    width: 37px;
    height: 37px;
}

body.auth-page:not(.auth-surface-android-twa) .auth-mobile-status {
    margin-top: 18px;
}

body.auth-page:not(.auth-surface-android-twa) .auth-heading {
    margin-top: 22px;
}

body.auth-page:not(.auth-surface-android-twa) .auth-heading h1 {
    font-size: 30px;
}

body.auth-page:not(.auth-surface-android-twa) .auth-heading p {
    max-width: 420px;
}

body.auth-page:not(.auth-surface-android-twa) .auth-form {
    gap: 14px;
    margin-top: 22px;
}

body.auth-page:not(.auth-surface-android-twa) .auth-input-icon {
    display: none;
}

body.auth-page:not(.auth-surface-android-twa) .auth-input {
    min-height: 50px;
    border-color: var(--auth-border);
    border-radius: 8px;
    background: #f7f9fb;
    padding: 12px 44px 12px 14px;
}

body.auth-page:not(.auth-surface-android-twa) .auth-captcha-wrap {
    min-height: 0;
    justify-content: flex-start;
    overflow: visible;
    border: 0;
    background: transparent;
    padding: 0;
}

body.auth-page:not(.auth-surface-android-twa) .auth-captcha-scale {
    width: 304px;
    max-width: 100%;
    transform-origin: left center;
}

body.auth-page:not(.auth-surface-android-twa) .auth-action-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
}

body.auth-page:not(.auth-surface-android-twa) .auth-primary-button {
    min-height: 50px;
    border-color: var(--auth-primary);
    background: var(--auth-primary);
    box-shadow: none;
}

body.auth-page:not(.auth-surface-android-twa) .auth-passkey-button {
    width: 100%;
    min-height: 48px;
    gap: 9px;
    border-color: #c7dce7;
    background: #eff8fb;
    color: #116b8d;
    font-size: 14px;
    font-weight: 800;
}

body.auth-page:not(.auth-surface-android-twa) .auth-google-button {
    min-height: 48px;
    border-color: var(--auth-border);
    background: #ffffff;
    color: #26374c;
    box-shadow: none;
}

body.auth-page:not(.auth-surface-android-twa) .auth-secondary-button {
    min-height: auto;
    border: 0;
    background: transparent;
    color: #607187;
    padding: 7px 12px;
    font-size: 12px;
}

body.auth-page:not(.auth-surface-android-twa) .auth-help,
body.auth-page:not(.auth-surface-android-twa) .auth-copyright {
    margin-top: 16px;
}

body.auth-page:not(.auth-surface-android-twa) .auth-visual-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 22px;
    color: #dce9ef;
    font-size: 12px;
    font-weight: 700;
}

body.auth-page:not(.auth-surface-android-twa) .auth-visual-points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.auth-page:not(.auth-surface-android-twa) .auth-visual-points b {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, .14);
}

@media (max-width: 420px) {
    body.auth-page:not(.auth-surface-android-twa) .auth-form-side {
        padding: 112px 10px 18px;
    }

    body.auth-page:not(.auth-surface-android-twa) .auth-form-wrap {
        padding: 22px 16px 18px;
    }

    body.auth-page:not(.auth-surface-android-twa) .auth-heading h1 {
        font-size: 28px;
    }

    body.auth-page:not(.auth-surface-android-twa) .auth-captcha-scale {
        transform: scale(.88);
    }
}

@media (min-width: 1024px) {
    body.auth-page:not(.auth-surface-android-twa) .auth-shell {
        height: 100dvh;
        min-height: 720px;
    }

    body.auth-page:not(.auth-surface-android-twa) .auth-visual-side {
        inset: 0;
        height: 100%;
    }

    body.auth-page:not(.auth-surface-android-twa) .auth-visual-photo {
        object-position: center center;
    }

    body.auth-page:not(.auth-surface-android-twa) .auth-visual-overlay {
        background: rgba(6, 25, 39, .6);
    }

    body.auth-page:not(.auth-surface-android-twa) .auth-visual-content {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        padding: 64px max(590px, 43vw) 64px 64px;
    }

    body.auth-page:not(.auth-surface-android-twa) .auth-visual-kicker {
        border: 0;
        border-radius: 6px;
        background: rgba(8, 99, 129, .74);
        color: #ffffff;
        padding: 7px 10px;
    }

    body.auth-page:not(.auth-surface-android-twa) .auth-visual-content h2 {
        max-width: 650px;
        color: #ffffff;
        font-size: 44px;
        line-height: 1.08;
    }

    body.auth-page:not(.auth-surface-android-twa) .auth-visual-content > p {
        max-width: 590px;
        color: #d8e4eb;
    }

    body.auth-page:not(.auth-surface-android-twa) .auth-form-side {
        position: absolute;
        inset: 0;
        min-height: 100%;
        align-items: center;
        justify-content: flex-end;
        overflow-y: auto;
        background: transparent;
        padding: 34px 54px;
        pointer-events: none;
    }

    body.auth-page:not(.auth-surface-android-twa) .auth-form-wrap {
        max-width: 500px;
        max-height: calc(100dvh - 68px);
        margin: auto 0 auto auto;
        overflow-y: auto;
        padding: 26px 28px 22px;
        pointer-events: auto;
        scrollbar-width: thin;
    }

    body.auth-page:not(.auth-surface-android-twa) .auth-mobile-status {
        display: none;
    }
}

@media (min-width: 1440px) {
    body.auth-page:not(.auth-surface-android-twa) .auth-form-side {
        padding-right: 74px;
        padding-left: 74px;
    }

    body.auth-page:not(.auth-surface-android-twa) .auth-visual-content {
        padding: 76px max(650px, 42vw) 76px 76px;
    }

    body.auth-page:not(.auth-surface-android-twa) .auth-visual-content h2 {
        font-size: 48px;
    }
}
