/* ============================================
   Auth Pages - Login & Register Styles
   ============================================ */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0F172A 0%, #1a1a3e 50%, #0F172A 100%);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* Animated background */
.auth-wrapper::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-cyan-glow) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}
.auth-wrapper::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--admin-purple-glow) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite reverse;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.auth-logo .logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-cyan), #0891B2);
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 0 30px var(--accent-cyan-glow);
}
.auth-logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.auth-logo p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Role selector */
.role-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.role-option {
    flex: 1;
    text-align: center;
    padding: 14px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
}
.role-option:hover {
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.05);
}
.role-option.active {
    border-color: var(--accent-cyan);
    background: var(--accent-cyan-glow);
}
.role-option i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}
.role-option.active i {
    color: var(--accent-cyan);
}
.role-option span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.role-option.active span {
    color: var(--accent-cyan);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.auth-footer a {
    color: var(--accent-cyan);
    font-weight: 600;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}
.auth-divider::before { margin-right: 12px; }
.auth-divider::after { margin-left: 12px; }

/* Alert override */
.auth-card .alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
    }
    .role-selector {
        flex-direction: column;
    }
}
