/* Force tous les titres à utiliser The Seasons */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-seasons) !important;
}


/* ========================================
   STYLES AUTHENTIFICATION - BL-SUPPLIER
   Page de connexion/inscription avec Firebase
======================================== */

/* Hero Section */
.auth-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-red) 0%, #8B0000 50%, var(--black) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    position: relative;
}

.auth-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="auth-pattern" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23auth-pattern)"/></svg>');
    opacity: 0.3;
}

.auth-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

/* Formulaires d'authentification */
.auth-form-container {
    background: var(--white);
    border-radius: 25px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.auth-form-container.hidden {
    display: none;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--black);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-family: var(--font-tektur);
}

.auth-title i {
    color: var(--primary-red);
    font-size: 2rem;
}

.auth-subtitle {
    color: var(--medium-gray);
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Formulaire */
.auth-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--primary-red);
    font-size: 1rem;
    min-width: 16px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--white);
    color: var(--black);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group input::placeholder {
    color: var(--medium-gray);
}

/* Options du formulaire */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

/* Checkbox personnalisée */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--dark-gray);
    line-height: 1.4;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-gray);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-container input:checked + .checkmark {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: var(--primary-red);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--dark-red);
    text-decoration: underline;
}

/* Boutons d'authentification */
.btn-auth {
    width: 100%;
    padding: 16px 25px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-auth.btn-primary {
    background: var(--gradient-red);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.3);
}

.btn-auth.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.btn-auth.btn-google {
    background: var(--white);
    color: var(--dark-gray);
    border: 2px solid var(--light-gray);
}

.btn-auth.btn-google:hover {
    background: #f8f9fa;
    border-color: var(--medium-gray);
    transform: translateY(-1px);
}

.btn-auth.btn-google i {
    color: #4285f4;
}

/* Diviseur */
.auth-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--light-gray);
}

.auth-divider span {
    background: var(--white);
    color: var(--medium-gray);
    padding: 0 20px;
    font-size: 0.9rem;
    position: relative;
}

/* Changement de formulaire */
.auth-switch {
    text-align: center;
    margin-top: 30px;
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.auth-switch a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-switch a:hover {
    color: var(--dark-red);
    text-decoration: underline;
}

/* Indicateur de force du mot de passe */
.password-strength {
    margin-top: 8px;
    height: 4px;
    background: var(--light-gray);
    border-radius: 2px;
    overflow: hidden;
    transition: var(--transition);
}

.password-strength::before {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    background: #ff4444;
    border-radius: 2px;
    transition: var(--transition);
}

.password-strength.weak::before {
    width: 33%;
    background: #ff4444;
}

.password-strength.medium::before {
    width: 66%;
    background: #ffaa00;
}

.password-strength.strong::before {
    width: 100%;
    background: #00aa44;
}

/* Messages d'alerte */
.alert-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.alert {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInRight 0.3s ease;
    position: relative;
}

.alert.success {
    border-left-color: #4CAF50;
    background: #f8fff8;
}

.alert.error {
    border-left-color: #f44336;
    background: #fff8f8;
}

.alert.warning {
    border-left-color: #ff9800;
    background: #fffaf0;
}

.alert i {
    font-size: 1.2rem;
}

.alert.success i {
    color: #4CAF50;
}

.alert.error i {
    color: #f44336;
}

.alert.warning i {
    color: #ff9800;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--black);
}

.alert-message {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--medium-gray);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.alert-close:hover {
    color: var(--black);
}

/* États de chargement */
.btn-auth.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-auth.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .auth-hero {
        padding: 100px 15px 60px;
    }
    
    .auth-container {
        max-width: 100%;
    }
    
    .auth-form-container {
        padding: 40px 25px;
        border-radius: 20px;
    }
    
    .auth-title {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .alert-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .auth-form-container {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .auth-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-auth {
        padding: 14px 20px;
    }
}
