/* Styles pour la page de création de compte - creer_compte.php */

/* Conteneur principal */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

/* Carte de connexion */
.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
}

/* En-tête */
.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.login-header .logo-container {
    margin-bottom: 20px;
}

.login-header .logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.login-header h2 {
    margin: 15px 0 5px;
    font-size: 1.8rem;
    font-weight: bold;
}

.login-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Corps de la carte */
.login-body {
    padding: 30px;
}

/* Indicateur d'étapes */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.step {
    display: flex;
    align-items: center;
    margin: 0 20px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step span {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.step.active span {
    color: #333;
    font-weight: 600;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step.completed .step-number::after {
    content: '✓';
    font-weight: bold;
}

.step.completed span {
    color: #28a745;
    font-weight: 600;
}

/* Carte d'information */
.info-card {
    background: linear-gradient(135deg, #e7f3ff 0%, #d4e9ff 100%);
    border-left: 5px solid #0066cc;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.info-card i {
    color: #0066cc;
    font-size: 1.1rem;
}

.info-card strong {
    color: #0066cc;
    font-size: 1.05rem;
}

.info-card small {
    display: block;
    margin-top: 5px;
    color: #666;
}

/* Formulaires */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-label i {
    color: #667eea;
    margin-right: 5px;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-control::placeholder {
    color: #aaa;
}

/* Input Group pour les mots de passe */
.input-group {
    position: relative;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-text {
    background: white;
    border: 2px solid #e0e0e0;
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.input-group:focus-within .input-group-text {
    border-color: #667eea;
}

.password-toggle {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.password-toggle:hover {
    background: #f8f9fa;
}

.password-toggle i {
    color: #667eea;
    transition: all 0.3s ease;
}

.password-toggle:hover i {
    color: #764ba2;
}

.text-muted {
    font-size: 0.85rem;
    color: #999 !important;
    margin-top: 5px;
}

/* Boutons */
.btn {
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.btn-link {
    color: #667eea;
    text-decoration: none;
    padding: 8px 15px;
}

.btn-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.btn i {
    margin-right: 8px;
}

/* Alertes */
.alert {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 5px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 5px solid #dc3545;
}

.alert i {
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 576px) {
    .login-card {
        margin: 10px;
    }

    .login-header {
        padding: 20px;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .login-body {
        padding: 20px;
    }

    .step {
        margin: 0 10px;
    }

    .step span {
        display: none;
    }

    .step-indicator::before {
        width: 40%;
    }
}

/* Animation de chargement */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeIn 0.5s ease-out;
}

/* Badge personnalisé */
.badge-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Lien de retour */
.text-center a {
    transition: all 0.3s ease;
}

.text-center a:hover {
    transform: translateX(5px);
}
