/* ============================================
   AUTHENTICATION STYLES
   ============================================ */

:root {
    --primary-blue: #1a3b8a;
    --primary-blue-hover: #0f2a66;
    --secondary-blue: #2c5bb0;
    --light-blue: #e8edf5;
    --dark-blue: #061248;
    --success-green: #28a745;
    --danger-red: #dc3545;
    --warning-yellow: #ffc107;
}

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

body {
    font-family: 'Source Sans Pro', sans-serif;
    background: linear-gradient(135deg, #f4f7fc 0%, #e8edf5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== CONTAINER PRINCIPAL ===== */
.auth-container {
    width: 100%;
    padding: 1.5rem;
}

.auth-wrapper {
    max-width: 480px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease;
}

/* ===== HEADER ===== */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    display: inline-block;
}

.auth-brand i {
    color: #ffd700;
}

.auth-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* ===== CARD ===== */
.auth-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* ===== FORM ===== */
.auth-form-container {
    padding: 0.25rem 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #343a40;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.form-group .form-label i {
    color: var(--primary-blue);
    width: 18px;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(26, 59, 138, 0.15);
}

.form-control.is-invalid {
    border-color: var(--danger-red);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.invalid-feedback {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ===== PASSWORD WRAPPER ===== */
.password-wrapper {
    position: relative;
}

.password-wrapper .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.3rem;
    transition: color 0.3s ease;
}

.password-wrapper .password-toggle:hover {
    color: var(--primary-blue);
}

/* ===== CHECKBOX ===== */
.form-check {
    margin-bottom: 0.5rem;
}

.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* ===== BOUTONS ===== */
.btn-auth {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-blue-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26, 59, 138, 0.3);
}

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

.btn-outline-secondary {
    border: 2px solid #e9ecef;
    color: #495057;
    background: transparent;
}

.btn-outline-secondary:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

/* ===== LIENS ===== */
.auth-links {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.auth-links a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: var(--primary-blue-hover);
    text-decoration: underline;
}

/* ===== FOOTER ===== */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.auth-footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.auth-footer-links a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-footer-links a:hover {
    color: var(--primary-blue);
}

/* ===== ALERTES ===== */
.alert {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: none;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    .auth-card {
        padding: 1.5rem 1.25rem;
    }
    
    .auth-brand {
        font-size: 1.4rem;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .btn-social {
        width: 100%;
    }
    
    .auth-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .auth-links .separator {
        display: none;
    }
}

/* ===== PERSONNALISATION SUPPLÉMENTAIRE ===== */
.text-primary {
    color: var(--primary-blue) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.verify-icon {
    color: var(--success-green);
}

.password-strength .progress {
    height: 4px;
    border-radius: 4px;
    background: #e9ecef;
}

.password-strength .progress-bar {
    transition: width 0.3s ease;
}

.password-strength .progress-bar.bg-danger {
    background-color: var(--danger-red) !important;
}

.password-strength .progress-bar.bg-warning {
    background-color: var(--warning-yellow) !important;
}

.password-strength .progress-bar.bg-success {
    background-color: var(--success-green) !important;
}

.account-type {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.account-type .form-check {
    margin-bottom: 0;
}

.account-type .form-check-input {
    margin-top: 0.15rem;
}

.account-type .form-check-label {
    cursor: pointer;
}

.account-type .form-check-label i {
    margin-right: 0.3rem;
}