.auth-shell {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 24%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.12), transparent 22%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    transition: background 220ms ease, color 220ms ease;
}

.auth-showcase-card {
    background: rgba(255, 255, 255, 0.72);
    box-shadow:
        0 32px 90px rgba(15, 23, 42, 0.12),
        0 10px 30px rgba(14, 165, 233, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.auth-panel-outer {
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 28px 80px rgba(15, 23, 42, 0.12),
        0 8px 24px rgba(15, 23, 42, 0.06);
}

.auth-panel {
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.auth-pill,
.theme-toggle {
    background: #e0f2fe;
    color: #0369a1;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.14);
}

.theme-toggle {
    border: 0;
}

.theme-toggle:hover {
    background: #dbeafe;
    color: #0f172a;
}

.theme-toggle-light-icon {
    display: none;
}

.auth-eyebrow {
    color: #059669;
}

.auth-showcase-title,
.auth-feature-title {
    color: #0f172a;
}

.auth-showcase-copy,
.auth-feature-copy,
.auth-showcase-footer {
    color: #475569;
}

.auth-showcase-footer a:hover {
    color: #0f172a;
}

.auth-feature-card {
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.08),
        0 6px 16px rgba(14, 165, 233, 0.05);
}

.auth-feature-icon {
    background: #ecfdf5;
    color: #059669;
    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.12);
}

.auth-warning {
    background: #fffbeb;
    color: #78350f;
    box-shadow:
        0 18px 50px rgba(120, 53, 15, 0.09),
        0 4px 14px rgba(245, 158, 11, 0.06);
}

.auth-warning-title {
    color: #451a03;
}

.auth-form-shell .text-slate-950,
.auth-form-shell .text-slate-900 {
    color: #0f172a !important;
}

.auth-form-shell .text-slate-700,
.auth-form-shell .text-slate-600,
.auth-form-shell .text-slate-500 {
    color: #475569 !important;
}

.auth-form-shell .bg-slate-50,
.auth-form-shell .bg-white {
    background-color: #f8fafc !important;
}

.auth-form-shell .border-slate-200 {
    border-color: #e2e8f0 !important;
}

.auth-form-shell input,
.auth-form-shell select,
.auth-form-shell textarea {
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.auth-form-shell .bg-slate-950 {
    background-color: #0f172a !important;
}

.auth-form-shell .hover\:bg-slate-800:hover {
    background-color: #1e293b !important;
}

body.theme-dark {
    background: #020617;
    color: #e2e8f0;
}

body.theme-dark .auth-shell {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 28%),
        linear-gradient(135deg, #020617 0%, #0f172a 48%, #111827 100%);
}

body.theme-dark .auth-showcase-card {
    background: rgba(255, 255, 255, 0.06);
    box-shadow:
        0 32px 90px rgba(2, 6, 23, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.theme-dark .auth-panel-outer {
    background: rgba(15, 23, 42, 0.82);
    box-shadow:
        0 28px 80px rgba(2, 6, 23, 0.45),
        0 8px 24px rgba(2, 6, 23, 0.2);
}

body.theme-dark .auth-panel {
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.28);
}

body.theme-dark .auth-logo {
    filter: brightness(0) invert(1);
}

body.theme-dark .auth-pill,
body.theme-dark .theme-toggle {
    background: rgba(56, 189, 248, 0.12);
    color: #bae6fd;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.12);
}

body.theme-dark .theme-toggle:hover {
    background: rgba(148, 163, 184, 0.16);
    color: #f8fafc;
}

body.theme-dark .theme-toggle-dark-icon {
    display: none;
}

body.theme-dark .theme-toggle-light-icon {
    display: inline-block;
}

body.theme-dark .auth-eyebrow {
    color: #86efac;
}

body.theme-dark .auth-showcase-title,
body.theme-dark .auth-feature-title,
body.theme-dark .auth-warning-title {
    color: #f8fafc;
}

body.theme-dark .auth-showcase-copy,
body.theme-dark .auth-feature-copy,
body.theme-dark .auth-showcase-footer,
body.theme-dark .auth-warning {
    color: #cbd5e1;
}

body.theme-dark .auth-showcase-footer a:hover {
    color: #f8fafc;
}

body.theme-dark .auth-feature-card {
    background: rgba(255, 255, 255, 0.05);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.theme-dark .auth-feature-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #86efac;
    box-shadow: none;
}

body.theme-dark .auth-warning {
    background: rgba(245, 158, 11, 0.1);
    box-shadow:
        0 18px 50px rgba(120, 53, 15, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.theme-dark .auth-form-shell .text-slate-950,
body.theme-dark .auth-form-shell .text-slate-900 {
    color: #f8fafc !important;
}

body.theme-dark .auth-form-shell .text-slate-700,
body.theme-dark .auth-form-shell .text-slate-600,
body.theme-dark .auth-form-shell .text-slate-500 {
    color: #cbd5e1 !important;
}

body.theme-dark .auth-form-shell .bg-slate-50,
body.theme-dark .auth-form-shell .bg-white {
    background-color: rgba(15, 23, 42, 0.72) !important;
}

body.theme-dark .auth-form-shell .border-slate-200 {
    border-color: rgba(148, 163, 184, 0.24) !important;
}

body.theme-dark .auth-form-shell input,
body.theme-dark .auth-form-shell select,
body.theme-dark .auth-form-shell textarea {
    color: #f8fafc !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.theme-dark .auth-form-shell input::placeholder,
body.theme-dark .auth-form-shell textarea::placeholder {
    color: #94a3b8;
}

body.theme-dark .auth-form-shell .bg-slate-950 {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

body.theme-dark .auth-form-shell .text-white {
    color: #0f172a !important;
}

body.theme-dark .auth-form-shell .hover\:bg-slate-800:hover {
    background-color: #cbd5e1 !important;
}

@media (max-width: 1023.98px) {
    .auth-showcase-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 640px) {
    .auth-page {
        justify-content: flex-start !important;
        min-height: 100svh !important;
        padding: 1.9rem 1rem 1.25rem !important;
    }

    .auth-logo-link {
        margin-bottom: 1rem !important;
    }

    .auth-logo {
        height: 16px !important;
    }

    .auth-card {
        max-width: 19rem !important;
        border-radius: 1.1rem !important;
        box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16) !important;
    }

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

    .auth-card-footer {
        padding: 0.65rem 1rem !important;
    }

    .auth-card h1 {
        margin-top: 0.3rem !important;
        font-size: 1rem !important;
        line-height: 1.25rem !important;
        letter-spacing: -0.025em !important;
    }

    .auth-card p {
        font-size: 0.75rem !important;
        line-height: 1.25rem !important;
    }

    .auth-card p[class*="uppercase"] {
        font-size: 0.62rem !important;
        letter-spacing: 0.12em !important;
    }

    .auth-card form {
        margin-top: 1rem !important;
        gap: 0 !important;
    }

    .auth-card form.space-y-4 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0.72rem !important;
    }

    .auth-card label {
        margin-bottom: 0.35rem !important;
        font-size: 0.74rem !important;
        line-height: 1rem !important;
    }

    .auth-card input[type="email"],
    .auth-card input[type="text"],
    .auth-card input[type="password"],
    .auth-card select,
    .auth-card textarea {
        border-radius: 0.95rem !important;
        padding: 0.68rem 0.85rem !important;
        font-size: 0.78rem !important;
        line-height: 1.05rem !important;
    }

    .auth-card input[type="checkbox"] {
        height: 0.85rem !important;
        width: 0.85rem !important;
    }

    .auth-card button[type="submit"] {
        border-radius: 0.95rem !important;
        padding: 0.78rem 0.9rem !important;
        font-size: 0.78rem !important;
        line-height: 1rem !important;
    }

    .auth-card a {
        font-size: 0.74rem !important;
    }

    .auth-card .rounded-2xl {
        border-radius: 0.95rem !important;
    }

    .auth-card .p-4 {
        padding: 0.85rem !important;
    }

    .auth-card .px-4 {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    .auth-card .py-3,
    .auth-card .py-3\.5 {
        padding-top: 0.68rem !important;
        padding-bottom: 0.68rem !important;
    }

    .auth-card .mt-2 {
        margin-top: 0.35rem !important;
    }

    .auth-card .mt-5,
    .auth-card .mt-6,
    .auth-card .mt-8 {
        margin-top: 1rem !important;
    }

    .auth-card-footer span,
    .auth-card-footer a {
        font-size: 0.64rem !important;
    }

    #theme-toggle {
        top: 0.65rem !important;
        right: 0.65rem !important;
        padding: 0.34rem 0.62rem !important;
        font-size: 0.56rem !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18) !important;
    }

    #theme-icon {
        font-size: 0.55rem !important;
    }
}

@media (max-width: 360px) {
    .auth-card {
        max-width: 18rem !important;
    }

    .auth-page {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}
