/*
 * ═══════════════════════════════════════════════════════════
 * EventNexus — Auth Pages Stylesheet
 * Login, Register, Forgot Password, OTP
 * ═══════════════════════════════════════════════════════════
 */

/* ─── Auth Layout ────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex;
    background: var(--gray-50);
    width: 100%;
}

.auth-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-right {
    flex: 1;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.auth-right::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.3) 0%, transparent 70%);
    animation: heroGlow 12s ease-in-out infinite alternate;
}

.auth-right-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 400px;
}

.auth-right-content h2 {
    color: var(--white);
    font-size: var(--text-3xl);
    margin-bottom: 1rem;
}

.auth-right-content p {
    color: rgba(255,255,255,0.7);
    font-size: var(--text-lg);
}

.auth-illustration {
    max-width: 320px;
    margin-bottom: 2rem;
    animation: floatAnimation 6s ease-in-out infinite;
}

/* ─── Auth Card ──────────────────────────────────────────── */
.auth-card {
    width: 100%;
    max-width: 440px;
}

.auth-card .brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin-bottom: 2rem;
    text-decoration: none;
}

.auth-card h3 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 2rem;
    font-size: var(--text-sm);
}

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

.auth-form .form-label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: var(--text-sm);
}

.auth-form .form-control {
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.auth-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.auth-form .input-group {
    position: relative;
}

.auth-form .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    z-index: 5;
    pointer-events: none;
}

.auth-form .form-control.has-icon {
    padding-left: 2.75rem;
}

.auth-form .password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    z-index: 5;
    padding: 0;
}

.auth-form .password-toggle:hover {
    color: var(--gray-600);
}

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

.password-strength-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--gray-200);
    overflow: hidden;
    margin-bottom: 0.375rem;
}

.password-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width var(--transition-base), background var(--transition-base);
}

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

.password-strength-text {
    font-size: var(--text-xs);
    font-weight: 500;
}

/* Auth Links */
.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: var(--text-sm);
}

.auth-links .form-check-label {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

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

.auth-links a:hover {
    text-decoration: underline;
}

/* Auth Submit */
.auth-form .btn-auth {
    width: 100%;
    padding: 0.75rem;
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

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

.auth-divider span {
    padding: 0 1rem;
    font-size: var(--text-sm);
    color: var(--gray-400);
    font-weight: 500;
}

/* Social Login */
.btn-social {
    width: 100%;
    padding: 0.625rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-700);
    font-weight: 600;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
    margin-bottom: 0.75rem;
}

.btn-social:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    transform: translateY(-1px);
}

.btn-social img {
    width: 20px;
    height: 20px;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: var(--text-sm);
    color: var(--gray-500);
}

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

/* ─── OTP Input ──────────────────────────────────────────── */
.otp-inputs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 2rem 0;
}

.otp-input {
    width: 52px;
    height: 58px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--gray-900);
    transition: all var(--transition-fast);
}

.otp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    outline: none;
}

.otp-input.filled {
    border-color: var(--primary);
    background: var(--primary-50);
}

.otp-resend {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.otp-resend a {
    color: var(--primary);
    font-weight: 600;
}

.otp-resend a.disabled {
    color: var(--gray-400);
    pointer-events: none;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .auth-right {
        display: none;
    }
    .auth-left {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .auth-card {
        max-width: 100%;
    }
    .otp-inputs {
        gap: 0.5rem;
    }
    .otp-input {
        width: 44px;
        height: 50px;
        font-size: var(--text-xl);
    }
}
