/* ===================================
   LOGIN, REGISTER & THANK YOU PAGES - DeepBetting
   =================================== */

:root {
    --neon-blue: #00f0ff;
    --neon-purple: #b14aed;
    --neon-pink: #ff2d92;
    --neon-green: #00ff88;
    --dark-bg: #0a0a0f;
    --dark-card: #12121a;
    --dark-border: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #8892a4;
    --gradient-neon: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 50%, var(--neon-pink) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 240, 255, 0.03) 2px,
            rgba(0, 240, 255, 0.03) 4px
        );
    pointer-events: none;
    z-index: 0;
    animation: scan-lines 25s linear infinite;
}

@keyframes scan-lines {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.glow-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 240, 255, 0.15);
    top: -100px;
    left: -100px;
    animation: float-1 8s ease-in-out infinite;
}

.glow-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(177, 74, 237, 0.12);
    bottom: -50px;
    left: 20%;
    animation: float-2 10s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1.05); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -20px) scale(1.08); }
}

/* ===== MAIN CONTAINER ===== */
.login-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ===== LEFT SIDE - FORM ===== */
.login-side {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow-y: auto;
}

.login-content {
    width: 100%;
    max-width: 420px;
}

/* Logo */
.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 40px;
}

.logo:hover {
    filter: brightness(1.2);
}

/* Header */
.login-header {
    margin-bottom: 35px;
}

.login-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ===== PLAN BADGE ===== */
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50px;
    margin-bottom: 25px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--neon-blue);
}

/* ===== ERROR & SUCCESS BOXES ===== */
.error-box,
.success-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 12px;
    margin-bottom: 25px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-box {
    background: rgba(255, 45, 146, 0.1);
    border: 1px solid rgba(255, 45, 146, 0.3);
}

.error-box i {
    color: var(--neon-pink);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.error-box span {
    color: var(--neon-pink);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.success-box {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.success-box i {
    color: var(--neon-blue);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.success-box span {
    color: var(--neon-blue);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

/* ===== FORM STYLES ===== */
.login-form {
    margin-bottom: 30px;
}

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

/* Form row for side-by-side inputs */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

.form-group.half {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.form-group label i {
    color: var(--neon-blue);
    font-size: 0.85rem;
}

.form-group input {
    width: 100%;
    padding: 16px 18px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-group input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
    background: rgba(18, 18, 26, 0.8);
}

.form-group.focused label {
    color: var(--neon-blue);
}

/* Password wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

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

/* Password strength indicator */
.password-strength {
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Form options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

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

.remember-me input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--dark-border);
    border-radius: 5px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.remember-me input:checked + .checkmark {
    background: var(--gradient-neon);
    border-color: transparent;
}

.checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--dark-bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-me input:checked + .checkmark::after {
    display: block;
}

.remember-me a {
    color: var(--neon-blue);
    text-decoration: none;
}

.remember-me a:hover {
    text-decoration: underline;
}

.forgot-password {
    color: var(--neon-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Login button */
.btn-login {
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient-neon);
    border: none;
    border-radius: 12px;
    color: var(--dark-bg);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

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

.divider span {
    padding: 0 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Register button */
.btn-register {
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    border: 1px solid var(--neon-purple);
    border-radius: 12px;
    color: var(--neon-purple);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: rgba(177, 74, 237, 0.1);
    box-shadow: 0 0 20px rgba(177, 74, 237, 0.2);
}

/* Back home link */
.back-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.back-home:hover {
    color: var(--neon-blue);
}

.back-home i {
    transition: transform 0.3s ease;
}

.back-home:hover i {
    transform: translateX(-5px);
}

/* ===== PLAN FEATURES ===== */
.plan-features {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.plan-features p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 600;
}

.plan-features ul {
    list-style: none;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.plan-features li i {
    color: var(--neon-green);
    font-size: 0.85rem;
}

/* ===== RIGHT SIDE - IMAGE ===== */
/* ===== RIGHT SIDE - IMAGE ===== */
.image-side {
    width: 50%;
    position: relative;
    background-color: var(--dark-bg);
    overflow: hidden;
}

/* Background slideshow */
.image-side .bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

@media (max-width: 1200px) {
    .image-side .bg-slide {
        background-position: 30% center; /* 0% = tout à gauche, 50% = centré */
    }
}

@media (max-width: 1024px) {
    .image-side .bg-slide {
        background-position: 20% center; /* encore plus à gauche */
    }
}

.image-side .bg-slide.active {
    opacity: 1;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 15, 0.85) 0%,
        rgba(177, 74, 237, 0.4) 50%,
        rgba(255, 45, 146, 0.3) 100%
    );
    z-index: 1;
}

.image-content {
    position: absolute;
    bottom: 60px;
    left: 50px;
    right: 50px;
    z-index: 2;
}

.image-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50px;
    margin-bottom: 20px;
}

.image-badge i {
    color: var(--neon-blue);
}

.image-badge span {
    color: var(--neon-blue);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.image-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.image-content h2 span {
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.image-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 450px;
}

/* ===== THANK YOU PAGE STYLES ===== */
.thank-you-content {
    text-align: center;
    max-width: 500px;
}

.thank-you-content .logo {
    margin-bottom: 30px;
}

/* Success Icon */
.success-icon-container {
    position: relative;
    margin-bottom: 30px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-neon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon.animated {
    transform: scale(1);
}

.success-icon i {
    font-size: 3rem;
    color: var(--dark-bg);
}

/* Thank you header */
.thank-you-header {
    text-align: center;
}

.thank-you-header h1 {
    font-size: 1.8rem;
}

/* User welcome box */
.user-welcome-box {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    margin-bottom: 25px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-neon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar i {
    font-size: 1.5rem;
    color: var(--dark-bg);
}

.user-info {
    text-align: left;
}

.user-greeting {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.user-display-name {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Membership info */
.membership-info {
    margin-bottom: 30px;
}

.membership-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: rgba(0, 240, 255, 0.15);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50px;
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--neon-blue);
}

.membership-badge i {
    color: var(--neon-blue);
}

.membership-badge.football-badge {
    background: rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.3);
    color: var(--neon-blue);
}

.membership-badge.us-sports-badge {
    background: rgba(255, 45, 146, 0.15);
    border-color: rgba(255, 45, 146, 0.3);
    color: var(--neon-pink);
}

.membership-badge.us-sports-badge i {
    color: var(--neon-pink);
}

.membership-badge.ultimate-badge {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(177, 74, 237, 0.15), rgba(255, 45, 146, 0.15));
    border-color: rgba(177, 74, 237, 0.3);
    color: var(--neon-purple);
}

.membership-badge.ultimate-badge i {
    color: var(--neon-purple);
}

.membership-info p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Next steps */
.next-steps {
    text-align: left;
    margin-bottom: 30px;
}

.next-steps h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step-item:hover {
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateX(5px);
}

.step-number {
    width: 35px;
    height: 35px;
    background: var(--gradient-neon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-bg);
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Thank you actions */
.thank-you-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 1024px) {
    .image-content h2 {
        font-size: 1.8rem;
    }
    
    .image-stats {
        gap: 25px;
    }
    
    .image-stats .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-side {
        width: 100%;
        min-height: 100vh;
        padding: 30px 20px;
    }
    
    .image-side {
        display: none;
    }
    
    .bg-grid {
        width: 100%;
    }
    
    .logo {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .login-header h1 {
        font-size: 1.6rem;
    }
    
    .login-header p {
        font-size: 1rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group.half {
        width: 100%;
    }
    
    .glow-orb-1 {
        width: 250px;
        height: 250px;
        top: -50px;
        left: -50px;
    }
    
    .glow-orb-2 {
        width: 200px;
        height: 200px;
        bottom: 10%;
        left: auto;
        right: -50px;
    }
}

@media (max-width: 400px) {
    .login-side {
        padding: 20px 15px;
    }
    
    .login-content {
        max-width: 100%;
    }
    
    .form-group input {
        padding: 14px 15px;
    }
    
    .btn-login {
        padding: 14px 20px;
    }
}

/* ===== ERROR STATE FOR INPUTS ===== */
.form-group.error input {
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 45, 146, 0.2);
}

.error-message {
    color: var(--neon-pink);
    font-size: 0.85rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== LOADING STATE ===== */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-login.loading span {
    display: none;
}

.btn-login.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--dark-bg);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
