.auth-theme-body {
    font-family: 'Alexandria', sans-serif !important;
    min-height: 100vh;
    background: var(--bg-main, #0B0E14);
    color: var(--text-main, #fff);
    margin: 0;
}

.auth-theme-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 50% at 50% -20%, color-mix(in srgb, var(--primary) 22%, transparent), transparent),
        radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--accent) 12%, transparent), transparent),
        radial-gradient(circle at 15% 85%, color-mix(in srgb, var(--secondary) 10%, transparent), transparent);
}

.auth-theme-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 2.5rem;
}

.auth-theme-back {
    align-self: flex-start;
    max-width: 28rem;
    width: 100%;
    margin: 0 auto 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.auth-theme-back:hover { color: var(--text-active); }

.auth-theme-card {
    width: 100%;
    max-width: 28rem;
    overflow: hidden;
}
.auth-theme-card.max-w-lg {
    max-width: 32rem;
}

.auth-theme-header {
    text-align: center;
    padding: 2rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--card-bg) 90%, var(--primary));
}

.auth-theme-logo {
    height: 4rem;
    width: auto;
    margin: 0 auto 1rem;
    object-fit: contain;
}

.auth-theme-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 0 0.35rem;
}

.auth-theme-sub {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0;
}

.auth-theme-body-inner {
    padding: 1.5rem;
}

.auth-role-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.auth-role-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem;
    border-radius: var(--card-radius, 14px);
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 800;
    font-size: 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.1s;
}
.auth-role-btn .auth-role-icon {
    font-size: 1.35rem;
    line-height: 1;
}
.auth-role-btn:hover {
    border-color: color-mix(in srgb, var(--primary) 50%, var(--border-color));
    color: var(--text-main);
}
.auth-role-btn.active {
    border-color: var(--primary);
    background: var(--nav-bg-active);
    color: var(--text-active);
    transform: translateY(-1px);
}

.auth-field-label {
    display: block;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.auth-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-main);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s;
}
.auth-input:focus {
    border-color: var(--primary);
}

.auth-demo-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: var(--nav-bg-active);
    border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border-color));
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.auth-demo-hint i { color: var(--text-active); }

.auth-footer-link {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    font-weight: 800;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
}
.auth-footer-link:hover { color: var(--text-active); }

.auth-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #f87171;
}

.auth-register-only,
.auth-demo-only {
    display: none;
}
.auth-register-only.visible,
.auth-demo-only.visible {
    display: block;
}

@media (max-width: 380px) {
    .auth-role-grid { grid-template-columns: 1fr 1fr; }
    .auth-role-btn { padding: 0.6rem 0.35rem; font-size: 0.7rem; }
}
