.flash {
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.flash.success {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.65);
    color: #a7f3d0;
}

.flash.danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.65);
    color: #fecaca;
}

.flash.info {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.65);
    color: #bfdbfe;
}

.card {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    padding: 1.4rem;
}

.hint {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.6;
}

.auth-shell {
    position: relative;
    min-height: calc(100vh - 5.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 3rem;
    overflow: hidden;
    isolation: isolate;
}

.auth-shell__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(55rem 28rem at 14% -8%, rgba(16, 185, 129, 0.25), transparent 60%),
        radial-gradient(50rem 24rem at 90% 102%, rgba(14, 165, 233, 0.18), transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0) 38%);
    z-index: -1;
}

.auth-wrap {
    width: min(100%, 58rem);
    display: grid;
    gap: 1.25rem;
    align-items: stretch;
}

.auth-wrap--admin {
    width: min(100%, 52rem);
}

.auth-headline,
.auth-banner {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38);
    padding: 1.2rem 1.4rem;
}

.auth-headline h1 {
    margin: 0;
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    letter-spacing: -0.02em;
    font-weight: 800;
}

.auth-headline p,
.auth-banner p {
    margin: 0.5rem 0 0;
    color: #cbd5e1;
    line-height: 1.55;
}

.auth-kicker {
    margin: 0 0 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    color: #6ee7b7;
    font-weight: 700;
}

.auth-card {
    width: min(100%, 34rem);
    margin: 0 auto;
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
}

.auth-card--admin {
    width: min(100%, 40rem);
}

.auth-wrap--wide {
    width: min(100%, 88rem);
}

.auth-card--wide {
    width: 100%;
    max-width: 100%;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 0;
    border-radius: 0.8rem;
    padding: 0.75rem 1rem;
    font-weight: 700;
    color: #022c22;
    background: linear-gradient(92deg, #34d399 0%, #6ee7b7 100%);
    box-shadow: 0 12px 24px rgba(52, 211, 153, 0.25);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 28px rgba(52, 211, 153, 0.3);
    filter: saturate(1.08);
}

.auth-submit:active {
    transform: translateY(0);
}

@media (min-width: 960px) {
    .auth-wrap {
        grid-template-columns: 1fr 1fr;
        gap: 1.4rem;
        align-items: center;
    }

    .auth-wrap--admin {
        grid-template-columns: 1fr;
    }

    .auth-wrap--wide {
        grid-template-columns: 1fr;
        max-width: 88rem;
    }

    .auth-headline {
        min-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}
