:root {
    --central-auth-bg: #020617;
    --central-auth-bg-soft: rgba(15, 23, 42, 0.78);
    --central-auth-border: rgba(51, 65, 85, 0.9);
    --central-auth-text: #e2e8f0;
    --central-auth-text-muted: #94a3b8;
    --central-auth-heading: #f8fafc;
    --central-auth-surface: rgba(15, 23, 42, 0.76);
    --central-auth-primary: #4f46e5;
    --central-auth-primary-hover: #4338ca;
    --central-auth-primary-soft: rgba(79, 70, 229, 0.18);
    --central-auth-success-bg: #ecfdf5;
    --central-auth-success-text: #166534;
    --central-auth-error-bg: #fef2f2;
    --central-auth-error-text: #b91c1c;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.central-auth-page {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, 0.22), transparent 30%),
        radial-gradient(circle at bottom right, rgba(147, 51, 234, 0.18), transparent 30%),
        var(--central-auth-bg);
    color: var(--central-auth-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.central-auth-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(14px);
}

.central-auth-nav__brand {
    color: var(--central-auth-heading);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.central-auth-nav__links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.central-auth-nav__link,
.central-auth-nav__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--central-auth-text-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.central-auth-nav__link:hover,
.central-auth-nav__button:hover {
    color: var(--central-auth-heading);
    border-color: rgba(99, 102, 241, 0.32);
    background: rgba(30, 41, 59, 0.72);
    transform: translateY(-1px);
}

.central-auth-main {
    padding: 2.5rem 1rem 3rem;
}

.central-auth-shell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 8rem);
    overflow: hidden;
}

.central-auth-shell--compact {
    min-height: calc(100vh - 11rem);
}

.central-auth-shell__aurora {
    position: absolute;
    width: 16rem;
    height: 16rem;
    border-radius: 999px;
    opacity: 0.55;
    filter: blur(56px);
    pointer-events: none;
}

.central-auth-shell__aurora--indigo {
    top: 12%;
    left: 16%;
    background: rgba(79, 70, 229, 0.28);
}

.central-auth-shell__aurora--violet {
    right: 12%;
    bottom: 14%;
    background: rgba(147, 51, 234, 0.24);
}

.central-auth-shell__aurora--sky {
    top: 22%;
    left: 22%;
    background: rgba(14, 165, 233, 0.22);
}

.central-auth-shell__aurora--cyan {
    right: 18%;
    bottom: 18%;
    background: rgba(6, 182, 212, 0.2);
}

.central-auth-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 30rem);
}

.central-auth-copy {
    margin-bottom: 1.5rem;
    text-align: center;
}

.central-auth-brand {
    margin: 0;
    color: var(--central-auth-heading);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.central-auth-brand__accent {
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.central-auth-title {
    margin: 0;
    color: var(--central-auth-heading);
    font-size: clamp(1.85rem, 4vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.central-auth-subtitle {
    margin: 0.55rem 0 0;
    color: var(--central-auth-text-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.central-auth-card {
    border: 1px solid var(--central-auth-border);
    border-radius: 1.35rem;
    background: var(--central-auth-surface);
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(18px);
    padding: 2rem;
}

.central-auth-form {
    display: grid;
    gap: 1rem;
}

.central-auth-field {
    display: grid;
    gap: 0.45rem;
}

.central-auth-label {
    color: #cbd5e1;
    font-size: 0.92rem;
    font-weight: 600;
}

.central-auth-input {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(71, 85, 105, 0.95);
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.68);
    color: var(--central-auth-heading);
    font: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.central-auth-input::placeholder {
    color: #64748b;
}

.central-auth-input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.85);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18);
    background: rgba(15, 23, 42, 0.92);
}

.central-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.central-auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #cbd5e1;
    font-size: 0.92rem;
}

.central-auth-checkbox input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--central-auth-primary);
}

.central-auth-link {
    color: #a5b4fc;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.central-auth-link:hover {
    color: #c7d2fe;
}

.central-auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.92rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.9rem;
    background: var(--central-auth-primary);
    color: #ffffff;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 16px 30px rgba(79, 70, 229, 0.22);
}

.central-auth-button:hover {
    background: var(--central-auth-primary-hover);
    transform: translateY(-1px);
}

.central-auth-button--secondary {
    background: transparent;
    border-color: rgba(71, 85, 105, 0.9);
    color: var(--central-auth-text);
    box-shadow: none;
}

.central-auth-button--secondary:hover {
    background: rgba(15, 23, 42, 0.7);
}

.central-auth-alert {
    border-radius: 0.95rem;
    padding: 0.9rem 1rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

.central-auth-alert--success {
    background: var(--central-auth-success-bg);
    color: var(--central-auth-success-text);
}

.central-auth-alert--error {
    background: var(--central-auth-error-bg);
    color: var(--central-auth-error-text);
}

.central-auth-alert__title {
    margin: 0 0 0.35rem;
    font-size: 0.96rem;
    font-weight: 700;
}

.central-auth-list {
    margin: 0.45rem 0 0;
    padding-left: 1.15rem;
}

.central-auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--central-auth-text-muted);
    font-size: 0.92rem;
}

.central-auth-actions {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.central-auth-status-card {
    text-align: center;
}

.central-auth-status-card p {
    margin: 0.75rem 0 0;
    color: var(--central-auth-text-muted);
    line-height: 1.6;
}

@media (max-width: 640px) {
    .central-auth-nav {
        padding: 0.9rem 1rem;
    }

    .central-auth-main {
        padding: 1.5rem 0.85rem 2rem;
    }

    .central-auth-card {
        padding: 1.4rem;
    }

    .central-auth-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .central-auth-shell__aurora {
        width: 12rem;
        height: 12rem;
    }
}
