.auth-theme-surface {
    --auth-page-background: radial-gradient(ellipse at 50% 20%, #ffffff 0%, #f7f9fc 55%, #eef3fa 100%);
    --auth-page-text: #172033;
    --auth-card-background: rgba(255, 255, 255, 0.94);
    --auth-card-border: #dbe4ef;
    --auth-title: #172033;
    --auth-body-text: #526176;
    --auth-label: #475569;
    --auth-input-background: #ffffff;
    --auth-input-text: #172033;
    --auth-input-border: #cbd5e1;
    --auth-link: #1d4ed8;
    color-scheme: light;
    color: var(--auth-page-text);
}

.auth-theme-surface[data-theme="dark"] {
    --auth-page-background: radial-gradient(ellipse at 50% 20%, #13213a 0%, #0b111b 65%);
    --auth-page-text: #f1f5f9;
    --auth-card-background: rgba(17, 26, 39, 0.94);
    --auth-card-border: #283342;
    --auth-title: #f8fafc;
    --auth-body-text: #a8b6c8;
    --auth-label: #c8d2df;
    --auth-input-background: #0c1421;
    --auth-input-text: #f8fafc;
    --auth-input-border: #3b485b;
    --auth-link: #93c5fd;
    color-scheme: dark;
}

.auth-theme-surface .login-card {
    background: var(--auth-card-background);
    border-color: var(--auth-card-border);
}

.auth-theme-surface .brand-title { color: var(--auth-title); }
.auth-theme-surface .brand-subtitle,
.auth-theme-surface .signin-note,
.auth-theme-surface .card-footer { color: var(--auth-body-text); }
.auth-theme-surface .form-label { color: var(--auth-label); }
.auth-theme-surface .form-input {
    background: var(--auth-input-background);
    border-color: var(--auth-input-border);
    color: var(--auth-input-text);
}
.auth-theme-surface .form-input::placeholder { color: #8b9aae; }
.auth-theme-surface a,
.auth-theme-surface .forgot-password-link { color: var(--auth-link); }
.auth-theme-surface .card-footer { border-top: 1px solid var(--auth-card-border); }

.arena-theme-toggle {
    display: inline-flex;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(100, 116, 139, 0.28);
    border-radius: 9px;
    background: rgba(100, 116, 139, 0.1);
    color: #526176;
    font: inherit;
    cursor: pointer;
}

.arena-theme-toggle:hover { background: rgba(100, 116, 139, 0.18); }
.arena-theme-toggle:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
.arena-theme-icon-sun { display: none; }
html[data-arena-theme="dark"] .arena-theme-icon-moon { display: none; }
html[data-arena-theme="dark"] .arena-theme-icon-sun { display: block; }

[data-arena-theme-surface="true"][data-theme="dark"] .arena-theme-toggle {
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.55);
    color: #cbd5e1;
}

.auth-theme-toolbar {
    position: absolute;
    z-index: 2;
    top: 22px;
    right: 22px;
}

@media (max-width: 480px) {
    .auth-theme-toolbar { top: 12px; right: 12px; }
}
