:root {
    --auth-navy: #152a55;
    --auth-navy-light: #1c315d;
    --auth-teal: #21868e;
    --auth-teal-dark: #18757c;
    --auth-mint: #8ed4d8;
    --auth-text: #1e293b;
    --auth-muted: #64748b;
}

.auth-shell {
    margin: 0;
    min-height: 100vh;
    color: var(--auth-text);
    background: #f1f5f9;
}

.auth-skip {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 50;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    background: #fff;
    color: var(--auth-navy);
}

.auth-skip:focus {
    left: 1rem;
    top: 1rem;
}

.auth-layout {
    display: grid;
    min-height: 100vh;
}

.auth-brand {
    position: relative;
    overflow: hidden;
    padding: 2.5rem 1.5rem;
    color: #fff;
    background: linear-gradient(180deg, var(--auth-navy-light) 0%, var(--auth-navy) 100%);
}

.auth-brand::before,
.auth-brand::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.auth-brand::before {
    top: -4rem;
    right: -4rem;
    width: 16rem;
    height: 16rem;
    background: rgba(33, 134, 142, 0.22);
    filter: blur(40px);
}

.auth-brand::after {
    bottom: -5rem;
    left: 2rem;
    width: 14rem;
    height: 14rem;
    background: rgba(142, 212, 216, 0.12);
    filter: blur(40px);
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 28rem;
    margin: 0 auto;
    text-align: center;
}

.auth-logo {
    display: block;
    width: 100%;
    max-width: 22rem;
    height: auto;
    margin: 0 auto;
}

.auth-kicker {
    margin: 2rem 0 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--auth-mint);
}

.auth-system {
    margin: 0.75rem 0 0;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 28rem;
    padding: 2rem 1.5rem;
    border-radius: 0.75rem;
    border-top: 4px solid var(--auth-teal);
    background: #fff;
    box-shadow: 0 10px 30px rgba(21, 42, 85, 0.08);
}

.auth-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--auth-navy);
}

.auth-lead {
    margin: 0.35rem 0 1.5rem;
    font-size: 0.9rem;
    color: var(--auth-muted);
}

.auth-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
}

.auth-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--auth-navy);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(33, 134, 142, 0.5);
}

.auth-link:hover,
.auth-link:focus {
    color: var(--auth-teal-dark);
}

.auth-link:focus {
    outline: 2px solid var(--auth-teal);
    outline-offset: 2px;
    border-radius: 2px;
}

.auth-submit {
    margin-top: 1.5rem;
}

.auth-back {
    margin-top: 1rem;
    text-align: center;
}

.auth-shell button[type='submit'] {
    width: 100%;
    justify-content: center;
    background-color: var(--auth-teal-dark);
}

.auth-shell button[type='submit']:hover,
.auth-shell button[type='submit']:focus {
    background-color: var(--auth-teal);
}

.auth-shell button[type='submit']:active {
    background-color: var(--auth-navy);
}

.auth-shell button[type='submit']:focus {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--auth-teal);
}

.auth-shell input:not([type='checkbox']):not([type='hidden']):focus {
    border-color: var(--auth-teal);
    box-shadow: 0 0 0 1px var(--auth-teal);
}

.auth-shell input[type='checkbox'] {
    accent-color: var(--auth-teal-dark);
}

@media (min-width: 640px) {
    .auth-card {
        padding: 2rem;
    }

    .auth-system {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .auth-layout {
        grid-template-columns: 1fr 1fr;
    }

    .auth-brand {
        display: flex;
        min-height: 100vh;
        align-items: center;
        padding: 4rem;
    }

    .auth-brand-inner {
        margin: 0;
        max-width: 32rem;
        text-align: left;
    }

    .auth-logo {
        margin: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-brand::before,
    .auth-brand::after {
        filter: none;
    }
}
