/**
 * Auth Page Styles - Cyberpunk Neon Gaming Theme
 * Copyright (c) 2025 HUST University
 * @author NGUYỄN ĐỨC BÌNH
 * 
 * 🎮 Neon Gaming Login/Register
 */

/* ========================================
   Social Login Buttons - Neon Style
   ======================================== */
.social-login {
    margin-top: 40px;
    text-align: center;
}

.social-login-text {
    color: var(--text-secondary);
    margin-bottom: 18px;
    position: relative;
    font-size: 1.4rem;
}

.social-login-text::before,
.social-login-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

.social-login-text::before {
    left: 0;
}

.social-login-text::after {
    right: 0;
}

.social-login-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
}

a.google-login-btn,
a.facebook-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius-pill);
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1.4rem;
}

.google-login-btn {
    background: linear-gradient(135deg, #DB4437, #C33025);
    box-shadow: 0 0 15px rgba(219, 68, 55, 0.4);
}

.google-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(219, 68, 55, 0.6);
}

.facebook-login-btn {
    background: linear-gradient(135deg, #4267B2, #3558A0);
    box-shadow: 0 0 15px rgba(66, 103, 178, 0.4);
}

.facebook-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(66, 103, 178, 0.6);
}

.google-login-btn i,
.facebook-login-btn i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.google-login-btn span,
.facebook-login-btn span {
    font-size: 1.4rem;
}

/* ========================================
   Referral Banner - Neon Style
   ======================================== */
.referral-banner {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.1) 100%);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--neon-green);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.referral-banner i {
    font-size: 2rem;
    filter: drop-shadow(0 0 5px var(--neon-green));
}

.referral-banner strong {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.form-optional {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-muted);
}

.referral-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.referral-icon {
    position: absolute;
    left: 18px;
    color: var(--neon-green);
    font-size: 1.6rem;
    z-index: 1;
    filter: drop-shadow(0 0 5px var(--neon-green));
}

.form-input--with-icon {
    padding-left: 50px !important;
}

.form-hint {
    display: block;
    margin-top: 10px;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.form-hint i {
    color: var(--neon-green);
    margin-right: 6px;
}

/* ========================================
   Auth Form Container - Glassmorphism
   ======================================== */
.auth-container {
    max-width: 500px;
    margin: 60px auto;
    padding: 0 15px;
}

.auth-card {
    background: var(--bg-gradient-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    border: 2px solid rgba(139, 92, 246, 0.3);
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.2),
        0 0 50px rgba(139, 92, 246, 0.2),
        0 30px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Neon Top Line */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue), var(--neon-pink));
    box-shadow: 0 0 20px var(--neon-purple);
}

.auth-header {
    padding: 30px;
    text-align: center;
    background: rgba(139, 92, 246, 0.1);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.auth-header__title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-header__subtitle {
    color: var(--text-secondary);
    font-size: 1.4rem;
}

.auth-body {
    padding: 30px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 1.4rem;
}

.auth-form .form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--border-radius-md);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.auth-form .form-control:focus {
    border-color: var(--neon-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2), var(--glow-purple);
    outline: none;
}

.auth-form .btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue));
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow:
        0 0 15px rgba(139, 92, 246, 0.5),
        0 0 30px rgba(34, 211, 238, 0.3);
}

.auth-form .btn-submit:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 25px rgba(139, 92, 246, 0.8),
        0 0 50px rgba(34, 211, 238, 0.5);
}

.auth-footer {
    padding: 20px 30px;
    text-align: center;
    background: rgba(11, 15, 26, 0.5);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.auth-footer a {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.4rem;
}

.auth-footer a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

/* ========================================
   Password Toggle
   ======================================== */
.password-toggle {
    position: relative;
}

.password-toggle .toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.password-toggle .toggle-btn:hover {
    color: var(--neon-purple);
}

/* ========================================
   Remember Me & Forgot Password
   ======================================== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.4rem;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--neon-purple);
}

.forgot-password {
    color: var(--neon-pink);
    font-size: 1.4rem;
    text-decoration: none;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 8px var(--neon-pink);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 576px) {
    .auth-container {
        margin: 30px auto;
    }

    .auth-header,
    .auth-body,
    .auth-footer {
        padding: 20px;
    }

    .social-login-buttons {
        flex-direction: column;
    }

    a.google-login-btn,
    a.facebook-login-btn {
        width: 100%;
    }
}