/* =============================================
   Auth Pages — Login, Register, Forgot Password
   Premium glassmorphism design
   ============================================= */

/* ── Auth Layout ── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

/* Animated background */
.auth-wrapper::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-2%, 2%) rotate(1deg); }
    50% { transform: translate(1%, -1%) rotate(-0.5deg); }
    75% { transform: translate(2%, 1%) rotate(0.5deg); }
}

/* Floating orbs */
.auth-wrapper::after {
    content: '';
    position: fixed;
    top: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: orbFloat 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 20px); }
}

/* ── Auth Card ── */
.auth-card {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out;
}

.auth-card-inner {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(99, 102, 241, 0.05);
    position: relative;
    overflow: hidden;
}

/* Glow border effect */
.auth-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    opacity: 0.8;
}

/* ── Auth Header ── */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: var(--gradient-accent);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-50);
    margin-bottom: 0.375rem;
}

.auth-header p {
    font-size: 0.9375rem;
    color: var(--dark-400);
}

/* Admin badge */
.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* ── Auth Form ── */
.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--dark-300);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.auth-form .form-control {
    padding: 0.75rem 0.875rem;
    font-size: 0.9375rem;
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(71, 85, 105, 0.5);
    border-radius: var(--radius-lg);
}

.auth-form .form-control:focus {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.auth-form .input-group .form-control {
    padding-left: 2.75rem;
}

.auth-form .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    width: 100%;
    margin-top: 0.5rem;
}

/* ── Remember & Forgot ── */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.auth-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-400);
    cursor: pointer;
}

.auth-options input[type="checkbox"] {
    accent-color: var(--primary-500);
    width: 1rem;
    height: 1rem;
}

.auth-options a {
    color: var(--primary-400);
    font-weight: 500;
}

.auth-options a:hover {
    color: var(--primary-300);
}

/* ── Auth Footer ── */
.auth-footer {
    text-align: center;
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.875rem;
    color: var(--dark-400);
}

.auth-footer a {
    color: var(--primary-400);
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--primary-300);
}

/* ── Divider ── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    font-size: 0.8125rem;
    color: var(--dark-500);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

/* ── Password Strength ── */
.password-strength {
    margin-top: 0.5rem;
}

.password-meter {
    height: 3px;
    background: var(--dark-700);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.375rem;
}

.password-meter-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.password-meter-fill.weak { width: 25%; background: var(--danger); }
.password-meter-fill.fair { width: 50%; background: var(--warning); }
.password-meter-fill.good { width: 75%; background: var(--info); }
.password-meter-fill.strong { width: 100%; background: var(--success); }

.password-hint {
    font-size: 0.75rem;
    color: var(--dark-500);
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .auth-card-inner {
        padding: 1.75rem;
        border-radius: var(--radius-xl);
    }
    
    .auth-header h1 {
        font-size: 1.25rem;
    }

    .auth-options {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}
