/* Styles pour les pages d'authentification */

:root {
    --primary-color: #3742fa;
    --primary-dark: #2c36c9;
    --secondary-color: #26de81;
    --danger-color: #ff4757;
    --warning-color: #ffa502;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #e1e8ed;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Container principal */
.auth-container {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Box d'authentification */
.auth-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    animation: slideIn 0.5s ease;
}

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

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.logo span {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 16px;
    color: var(--text-light);
}

/* Alertes */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert-error {
    background: rgba(255, 71, 87, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(255, 71, 87, 0.2);
}

.alert-success {
    background: rgba(38, 222, 129, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(38, 222, 129, 0.2);
}

/* Formulaire */
.auth-form {
    margin-bottom: 20px;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group label i {
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(55, 66, 250, 0.1);
}

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

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
}

/* Boutons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(55, 66, 250, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-block {
    width: 100%;
}

/* Footer */
.auth-footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Info */
.auth-info {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
}

.auth-info a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Features (pour la page de login) */
.auth-features {
    display: none;
}

/* Responsive pour écrans larges */
@media (min-width: 1200px) {
    .auth-container {
        gap: 60px;
    }
    
    .auth-features {
        display: block;
        color: white;
        max-width: 500px;
    }
    
    .auth-features h2 {
        font-size: 32px;
        margin-bottom: 30px;
        font-weight: 700;
    }
    
    .features-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .feature-item {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        padding: 25px;
        border-radius: 15px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .feature-item i {
        font-size: 32px;
        margin-bottom: 15px;
        display: block;
    }
    
    .feature-item h3 {
        font-size: 18px;
        margin-bottom: 10px;
        font-weight: 600;
    }
    
    .feature-item p {
        font-size: 14px;
        opacity: 0.9;
        line-height: 1.6;
    }
}

/* Page d'inscription spécifique */
.auth-box.register {
    max-width: 550px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.password-strength {
    margin-top: 8px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.password-strength-bar.weak {
    width: 33%;
    background: var(--danger-color);
}

.password-strength-bar.medium {
    width: 66%;
    background: var(--warning-color);
}

.password-strength-bar.strong {
    width: 100%;
    background: var(--secondary-color);
}

.password-requirements {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
}

/* Plans tarifaires dans l'inscription */
.pricing-plans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.plan-card {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.plan-card:hover {
    border-color: var(--primary-color);
}

.plan-card.selected {
    border-color: var(--primary-color);
    background: rgba(55, 66, 250, 0.05);
}

.plan-card input[type="radio"] {
    display: none;
}

.plan-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.plan-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.plan-price small {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
}

.plan-features {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 10px;
}

/* Animations supplémentaires */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.form-control.error {
    border-color: var(--danger-color);
    animation: shake 0.5s ease;
}

/* Loading */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

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