:root {
    color-scheme: dark;
}

.auth-body {
    min-height: 100vh;
    margin: 0;
    color: #e2e8f0;
    background:
        radial-gradient(1100px 620px at 8% 0%, rgba(56, 189, 248, .18), transparent 58%),
        radial-gradient(900px 560px at 92% 12%, rgba(16, 185, 129, .15), transparent 58%),
        radial-gradient(760px 520px at 50% 100%, rgba(99, 102, 241, .13), transparent 60%),
        linear-gradient(180deg, #020617 0%, #071225 55%, #020617 100%);
}

.auth-layout {
    position: relative;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 28px 16px;
}

.auth-layout::before,
.auth-layout::after {
    position: fixed;
    z-index: 0;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    content: "";
    filter: blur(80px);
    pointer-events: none;
    opacity: .22;
}

.auth-layout::before {
    top: -180px;
    left: -120px;
    background: #38bdf8;
}

.auth-layout::after {
    right: -140px;
    bottom: -190px;
    background: #10b981;
}

.auth-layout__container {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    text-align: center;
    text-decoration: none;
}

.auth-brand__logo {
    width: min(250px, 72vw);
    max-height: 82px;
    object-fit: contain;
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .32));
}

.auth-brand__name {
    color: rgba(226, 232, 240, .78);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.auth-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .20);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .88));
    box-shadow:
        0 28px 90px rgba(0, 0, 0, .48),
        inset 0 1px 0 rgba(255, 255, 255, .05);
    backdrop-filter: blur(18px);
}

.auth-shell::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(600px 300px at 0% 0%, rgba(56, 189, 248, .11), transparent 60%),
        radial-gradient(520px 260px at 100% 0%, rgba(16, 185, 129, .09), transparent 62%);
    pointer-events: none;
}

.auth-shell__inner {
    position: relative;
    padding: 26px;
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    padding: 7px 12px;
    border: 1px solid rgba(148, 163, 184, .20);
    border-radius: 999px;
    color: rgba(226, 232, 240, .82);
    background: rgba(2, 6, 23, .56);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.auth-chip__dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .13);
}

.auth-title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 900;
    line-height: 1.15;
}

.auth-description {
    margin: 9px 0 0;
    color: rgba(203, 213, 225, .80);
    font-size: .88rem;
    line-height: 1.65;
}

.auth-content {
    margin-top: 24px;
}

.auth-content :is(input:not([type="checkbox"]), select, textarea) {
    border-color: rgba(148, 163, 184, .24) !important;
    color: #e2e8f0 !important;
    background: rgba(2, 6, 23, .58) !important;
}

.auth-content :is(input, select, textarea):focus {
    border-color: rgba(56, 189, 248, .60) !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .12) !important;
}

.auth-content :is(input, textarea)::placeholder {
    color: rgba(148, 163, 184, .62) !important;
}

.auth-primary,
.auth-content [data-auth-primary] {
    border: 1px solid rgba(56, 189, 248, .30) !important;
    color: #fff !important;
    background: linear-gradient(135deg, #0ea5e9, #10b981) !important;
    box-shadow: 0 14px 32px rgba(2, 132, 199, .18) !important;
}

.auth-primary:hover,
.auth-content [data-auth-primary]:hover {
    filter: brightness(1.07);
}

.auth-secondary {
    border: 1px solid rgba(148, 163, 184, .22) !important;
    color: #e2e8f0 !important;
    background: rgba(15, 23, 42, .72) !important;
}

.auth-link {
    color: #7dd3fc;
    font-weight: 800;
    text-decoration: none;
}

.auth-link:hover {
    color: #bae6fd;
}

.auth-status,
.auth-error,
.auth-info {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.55;
}

.auth-status {
    border: 1px solid rgba(34, 197, 94, .34);
    color: #bbf7d0;
    background: rgba(22, 163, 74, .13);
}

.auth-error {
    border: 1px solid rgba(248, 113, 113, .36);
    color: #fecaca;
    background: rgba(185, 28, 28, .15);
}

.auth-info {
    border: 1px solid rgba(56, 189, 248, .28);
    color: #bae6fd;
    background: rgba(14, 165, 233, .10);
}

.auth-divider {
    height: 1px;
    margin: 22px 0;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, .24), transparent);
}

.auth-footer {
    margin-top: 18px;
    color: rgba(148, 163, 184, .80);
    font-size: .78rem;
    line-height: 1.55;
    text-align: center;
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-actions > * {
    flex: 1 1 180px;
}

@media (max-width: 640px) {
    .auth-layout {
        align-items: flex-start;
        padding: 18px 10px;
    }

    .auth-shell {
        border-radius: 22px;
    }

    .auth-shell__inner {
        padding: 20px 16px;
    }

    .auth-brand__logo {
        max-height: 68px;
    }
}
