:where(.luma-auth) {
    min-width: 20rem;
    margin: 0;
    background: #17211c;
}

.luma-auth .auth-shell {
    --auth-ink: #17211c;
    --auth-muted: #66746c;
    --auth-panel: #fffaf2;
    --auth-line: #829087;
    --auth-primary: #2f7d64;
    --auth-primary-dark: #24634f;
    --auth-surface: #f6efe4;
    --auth-gold: #f5c66a;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    color: #f9f5ec;
    background:
        linear-gradient(115deg, rgba(23, 33, 28, .98) 0%, rgba(24, 69, 70, .96) 48%, rgba(111, 61, 46, .98) 100%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 72px);
}

.luma-auth .auth-layout {
    flex: 1;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22.5rem, 27.5rem);
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: center;
    padding: 3rem 1.5rem;
}

.luma-auth .auth-layout > section:last-child {
    width: 100%;
    max-width: 27.5rem;
    justify-self: end;
}

.luma-auth .auth-center {
    flex: 1;
    width: 100%;
    display: grid;
    place-items: center;
    padding: 5rem 1rem 2rem;
}

.luma-auth .auth-brand-home {
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    border-radius: .5rem;
}

.luma-auth .auth-brand-logo {
    width: min(100%, 18.5rem);
    height: auto;
    border-radius: .5rem;
    box-shadow: 0 .75rem 1.75rem rgba(0, 0, 0, .16);
}

.luma-auth .hero-copy {
    max-width: 47.5rem;
}

.luma-auth .auth-shell--student .hero-copy {
    max-width: 38.75rem;
}

.luma-auth .hero-eyebrow {
    color: var(--auth-gold);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.luma-auth .hero-title {
    color: var(--auth-panel);
    font-size: clamp(2rem, 3vw, 2.85rem);
    line-height: 1.08;
    font-weight: 800;
    margin: 1.25rem 0 1rem;
}

.luma-auth .auth-shell--student .hero-title {
    font-size: clamp(2.25rem, 4vw, 3.75rem);
    line-height: 1.05;
}

.luma-auth .hero-text {
    max-width: 36rem;
    margin-bottom: 0;
    color: rgba(255, 250, 242, .78);
    font-size: 1.05rem;
    line-height: 1.65;
}

.luma-auth .auth-card {
    color: var(--auth-ink);
    background: var(--auth-panel);
    border: 1px solid rgba(255, 255, 255, .44);
    border-radius: .75rem;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .24);
    overflow: hidden;
}

.luma-auth .auth-card--compact {
    width: min(100%, 27.5rem);
}

.luma-auth .auth-card .card-body,
.luma-auth .auth-card .card-footer {
    background: transparent;
}

.luma-auth .auth-card .card-footer {
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .65rem 1rem;
    border-color: rgba(23, 33, 28, .12);
    background: var(--auth-surface);
}

.luma-auth .auth-card-logo {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: .5rem;
    object-fit: cover;
}

.luma-auth .auth-heading {
    color: var(--auth-ink);
    font-weight: 800;
    margin-bottom: .25rem;
}

.luma-auth .auth-subtitle {
    color: var(--auth-muted);
    line-height: 1.5;
}

.luma-auth .auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35rem;
    padding: .35rem;
    border: 1px solid var(--auth-line);
    border-radius: .5rem;
    background: var(--auth-surface);
}

.luma-auth .auth-tab {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .375rem;
    color: #53645a;
    font-weight: 700;
    text-decoration: none;
}

.luma-auth .auth-tab:hover {
    color: var(--auth-ink);
    text-decoration: none;
}

.luma-auth .auth-tab.active {
    background: #ffffff;
    color: var(--auth-ink);
    box-shadow: 0 .2rem .8rem rgba(23, 33, 28, .1);
}

.luma-auth .google-button {
    min-height: 3rem;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid var(--auth-line);
    border-radius: .5rem;
    background: #ffffff;
    color: #1f2933;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.luma-auth .google-button:hover,
.luma-auth .google-button:focus {
    background: #f2f5f3;
    border-color: #617268;
    color: #111827;
    text-decoration: none;
    transform: translateY(-1px);
}

.luma-auth .form-label {
    color: var(--auth-ink);
    font-weight: 700;
}

.luma-auth .form-control,
.luma-auth .form-select {
    min-height: 3rem;
    border-color: var(--auth-line);
    background-color: #ffffff;
    color: var(--auth-ink);
}

.luma-auth .form-control:focus,
.luma-auth .form-select:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 .25rem rgba(47, 125, 100, .18);
}

.luma-auth .auth-shell--student .form-control {
    text-transform: uppercase;
}

.luma-auth .auth-shell--student .pin-input {
    text-transform: none;
    letter-spacing: .2em;
}

.luma-auth .form-check-input {
    border-color: var(--auth-line);
}

.luma-auth .form-check-label {
    color: #435047;
}

.luma-auth .btn-auth-primary {
    min-height: 3rem;
    border: 0;
    border-radius: .5rem;
    background: var(--auth-primary);
    color: #ffffff;
    font-weight: 800;
}

.luma-auth .btn-auth-primary:hover,
.luma-auth .btn-auth-primary:focus {
    background: var(--auth-primary-dark);
    color: #ffffff;
}

.luma-auth .auth-link,
.luma-auth .auth-inline-link,
.luma-auth .auth-footer-link {
    color: var(--auth-primary);
    font-weight: 700;
    text-decoration: none;
}

.luma-auth .auth-link:hover,
.luma-auth .auth-inline-link:hover,
.luma-auth .auth-footer-link:hover {
    color: var(--auth-primary-dark);
    text-decoration: underline;
}

.luma-auth .auth-inline-link,
.luma-auth .auth-footer-link {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
}

.luma-auth .auth-options {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.luma-auth .auth-options .auth-inline-link {
    margin-left: auto;
}

.luma-auth .auth-note,
.luma-auth .auth-hint {
    color: #6f594a;
    font-size: .85rem;
    line-height: 1.45;
}

.luma-auth .auth-hint {
    margin-top: .4rem;
}

.luma-auth .hr-text {
    color: #68756d;
}

.luma-auth .alert {
    border-radius: .5rem;
    line-height: 1.45;
}

.luma-auth .auth-language-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 9rem;
}

.luma-auth .auth-language-switcher .form-select {
    min-height: 2.75rem;
    background-color: rgba(255, 250, 242, .96);
    border-color: var(--auth-line);
    color: var(--auth-ink);
    font-weight: 700;
}

.luma-auth :is(a, button, input, select):focus-visible {
    outline: 3px solid #e6ae46;
    outline-offset: 2px;
}

.luma-auth .form-control:focus-visible,
.luma-auth .form-select:focus-visible,
.luma-auth .form-check-input:focus-visible {
    outline: 0;
}

@media (prefers-reduced-motion: reduce) {
    .luma-auth .google-button {
        transition: none;
    }

    .luma-auth .google-button:hover,
    .luma-auth .google-button:focus {
        transform: none;
    }
}

@media (max-width: 991.98px) {
    .luma-auth .auth-language-switcher {
        position: static;
        width: 9rem;
        margin: .75rem .75rem 0 auto;
    }

    .luma-auth .auth-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
        padding: 1rem 1rem 2rem;
    }

    .luma-auth .auth-layout > section:last-child {
        max-width: 27.5rem;
        justify-self: center;
    }

    .luma-auth .hero-copy {
        width: 100%;
        max-width: 33.75rem;
        justify-self: center;
    }

    .luma-auth .hero-title,
    .luma-auth .auth-shell--student .hero-title {
        font-size: 2.25rem;
        line-height: 1.08;
    }
}

@media (max-width: 575.98px) {
    .luma-auth .auth-language-switcher {
        position: static;
        width: 8.75rem;
        margin: .75rem .75rem 0 auto;
    }

    .luma-auth .auth-layout {
        gap: 1rem;
        padding: .75rem .75rem 1.5rem;
    }

    .luma-auth .auth-brand-logo {
        width: 100%;
    }

    .luma-auth .auth-brand-home {
        width: 9rem;
        max-width: 9rem;
        flex: 0 0 auto;
    }

    .luma-auth .hero-eyebrow {
        white-space: nowrap;
    }

    .luma-auth .hero-copy > .mb-4 {
        display: flex;
        align-items: center;
        gap: .75rem;
        margin-bottom: .5rem !important;
    }

    .luma-auth .hero-title,
    .luma-auth .auth-shell--student .hero-title {
        margin: .5rem 0 .4rem;
        font-size: 1.8rem;
        line-height: 1.08;
    }

    .luma-auth .hero-text {
        font-size: .9rem;
        line-height: 1.45;
    }

    .luma-auth .auth-center {
        place-items: start center;
        padding: .75rem .75rem 1.5rem;
    }

    .luma-auth .auth-card--compact {
        width: 100%;
    }

    .luma-auth .auth-card > .card-body {
        padding: 1rem !important;
    }

    .luma-auth .auth-card .card-body > .mb-4:first-child,
    .luma-auth .auth-tabs.mb-4,
    .luma-auth .auth-options.mb-4 {
        margin-bottom: 1rem !important;
    }

    .luma-auth .hr-text.my-4 {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .luma-auth .google-button.mb-3,
    .luma-auth .auth-note.mb-3,
    .luma-auth .auth-card form > .mb-3 {
        margin-bottom: .75rem !important;
    }

    .luma-auth .auth-note,
    .luma-auth .auth-hint {
        font-size: .8rem;
    }

    .luma-auth .auth-options {
        align-items: flex-start;
    }
}
