/* 
 * Design Moderne pour l'Authentification Membre
 * Le Studio By M
 */

/* Container Principal */
.auth-modern-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.auth-modern-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

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

/* Card Principale */
.auth-card {
    background: white;
    border-radius: 30px;
    padding: 50px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

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

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo img {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.auth-logo-text {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.auth-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: 10px;
    font-weight: 400;
}

/* Titre Section */
.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.auth-description {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Form Groups */
.form-group-modern {
    margin-bottom: 25px;
    position: relative;
}

.form-label-modern {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control-modern {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control-modern:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-control-modern::placeholder {
    color: #999;
}

/* Input avec icône */
.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
    pointer-events: none;
}

.input-with-icon .form-control-modern {
    padding-left: 50px;
}

/* Checkbox moderne */
.checkbox-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.checkbox-modern input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
}

.checkbox-modern label {
    margin: 0;
    cursor: pointer;
    user-select: none;
    color: #666;
}

/* Boutons */
.btn-auth-modern {
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary-auth {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-primary-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-outline-auth {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline-auth:hover {
    background: #667eea;
    color: white;
}

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

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.auth-divider span {
    padding: 0 15px;
    color: #999;
    font-size: 0.9rem;
}

/* Links */
.auth-links {
    text-align: center;
    margin-top: 25px;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.auth-links p {
    color: #666;
    margin: 10px 0;
}

/* Alertes modernes */
.alert-auth {
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.alert-success-auth {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.alert-danger-auth {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.alert-info-auth {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.alert-warning-auth {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

.alert-auth i {
    font-size: 1.3rem;
}

/* Back Button */
.auth-back {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
}

.btn-back-auth {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back-auth:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
    color: white;
}

/* Password Strength */
.password-strength {
    margin-top: 10px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak { background: #dc3545; width: 33%; }
.strength-medium { background: #ffc107; width: 66%; }
.strength-strong { background: #28a745; width: 100%; }

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 35px 25px;
        border-radius: 25px;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-logo-text {
        font-size: 1.5rem;
    }
    
    .auth-back {
        position: static;
        margin-bottom: 20px;
        text-align: center;
    }
}

/* Loading State */
.btn-auth-modern:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-auth-modern.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Success Icon Animation */
.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c997);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2.5rem;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

