/* ====== Auth Pages Theme ====== */
:root {
    --auth-bg: #1a1a1a;
    --auth-card: rgba(255, 255, 255, 0.04);
    --auth-card-hover: rgba(255, 255, 255, 0.08);
    --auth-border: rgba(255, 255, 255, 0.08);
    --auth-text: #ffffff;
    --auth-text-muted: #94a3b8;
    --auth-accent: #3b82f6;
    --auth-success: #22c55e;
    --auth-danger: #ef4444;
    --auth-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
    --auth-radius-lg: 24px;
    --auth-radius-md: 16px;
    --auth-radius-sm: 12px;
}

body.auth-page {
    background: var(--auth-bg);
    color: var(--auth-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.auth-page main {
    background: var(--auth-bg);
    padding: 120px 24px 80px;
    min-height: calc(100vh - 160px);
}

body.auth-page header {
    background: rgba(21, 21, 21, 0.95);
    border-bottom: 1px solid var(--auth-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

body.auth-page header a {
    color: #e2e8f0;
}

body.auth-page header a:hover {
    color: var(--auth-accent);
}

body.auth-page .nav-demo {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    color: #000000 !important;
    border-radius: 100px;
    padding: 10px 20px;
}

body.auth-page footer {
    background: #0b0b0c;
    border-top: 1px solid var(--auth-border);
    color: var(--auth-text-muted);
}

body.auth-page footer a {
    color: var(--auth-text-muted);
}

body.auth-page footer a:hover {
    color: var(--auth-accent);
}

body.auth-page .footer-col-header {
    color: var(--auth-text);
}

/* ====== Auth Layout ====== */
.auth-wrapper {
    max-width: 520px;
    margin: 0 auto;
}

.auth-card {
    background: var(--auth-card);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-lg);
    padding: 40px;
    box-shadow: var(--auth-shadow);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.auth-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: var(--auth-card-hover);
}

.auth-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: var(--auth-text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

.auth-card form {
    display: grid;
    gap: 16px;
}

.auth-card form p {
    margin: 0;
    display: grid;
    gap: 6px;
}

.auth-card .helptext {
    font-size: 0.8rem;
    color: var(--auth-text-muted);
}

.auth-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--auth-text-muted);
    font-size: 0.85rem;
}

.auth-card label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--auth-text-muted);
}

.auth-card input,
.auth-card select,
.auth-card textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-sm);
    background: rgba(10, 10, 16, 0.9);
    color: var(--auth-text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.auth-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.auth-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.45);
}

.auth-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid var(--auth-border);
}

.auth-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.auth-alert {
    padding: 14px 16px;
    border-radius: var(--auth-radius-sm);
    border: 1px solid var(--auth-border);
    background: rgba(8, 8, 12, 0.9);
    font-size: 0.95rem;
}

.auth-alert.error {
    border-color: rgba(239, 68, 68, 0.4);
    color: #fecaca;
}

.auth-alert.success {
    border-color: rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.auth-link {
    color: #93c5fd;
    text-decoration: none;
}

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

@media (max-width: 768px) {
    body.auth-page main {
        padding: 100px 20px 60px;
    }

    .auth-card {
        padding: 28px;
    }

    .auth-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-btn {
        width: 100%;
    }
}
