/* Styles spécifiques à la page de connexion */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e4573 100%);
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 450px;
    margin: auto;
}

.login-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: fadeIn 0.6s ease-out;
}

.brand-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-circle {
    width: 85px;
    height: 85px;
    background: white;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(37, 83, 135, 0.1);
}

.logo-img {
    width: 60px;
    height: auto;
    object-fit: contain;
}

.logo-circle i {
    font-size: 2.5rem;
    color: white;
    font-weight: 900 !important;
}

.brand-header h1 {
    color: var(--primary-blue);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.welcome-text {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Style de base pour le formulaire */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0;
}

.form-label {
    color: var(--paragraph-color);
    font-weight: 500;
    font-size: 0.9375rem;
    padding-left: 0.5rem;
}

/* STYLE POUR LES ICÔNES - IMPORTANT */
.input-wrapper {
    position: relative !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.input-wrapper i {
    position: absolute !important;
    left: 1.25rem !important;
    z-index: 10 !important;
    color: var(--primary-blue) !important;
    font-size: 1.25rem !important;
    font-weight: 900 !important;
}

.input-wrapper input {
    width: 100%;
    height: 3.5rem;
    padding: 0 3rem 0 3.5rem;
    background-color: var(--input-background);
    border: 1px solid rgba(37, 83, 135, 0.1);
    border-radius: 1rem;
    font-size: 1rem;
    color: var(--paragraph-color);
    transition: all 0.2s ease;
    position: relative;
}

/* Style spécifique pour le champ de mot de passe */
.input-wrapper input[type="password"],
.input-wrapper input[type="text"] {
    padding-right: 3.5rem !important;
}

.input-wrapper input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(37, 83, 135, 0.08);
    outline: none;
}

.input-wrapper input::placeholder {
    color: #9ca3af;
}

/* Bouton pour afficher/masquer le mot de passe */
.password-toggle {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
}

.password-toggle i {
    color: var(--primary-blue) !important;
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Spécifiquement pour le champ mot de passe */
#password {
    padding-right: 50px !important;
}

/* Options du formulaire (se souvenir de moi) */
.form-options {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-me input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary-blue);
}

.remember-me label {
    color: #4b5563;
    cursor: pointer;
}

/* Bouton de soumission */
.submit-button {
    height: 3.5rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e4573 100%);
    color: white;
    border: none;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button i {
    font-size: 1.125rem;
    transition: transform 0.2s ease;
    color: white !important;
}

.submit-button:hover i {
    transform: translateX(4px);
}

/* Message d'erreur */
.error-message {
    background-color: #fee2e2;
    border-left: 4px solid #ef4444;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.error-message i {
    color: #ef4444 !important;
    margin-right: 0.875rem;
    font-size: 1.125rem;
}

.error-message p {
    color: #b91c1c;
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.5;
}

/* Animation du formulaire */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 640px) {
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .logo-circle {
        width: 70px;
        height: 70px;
    }
    
    .logo-circle i {
        font-size: 2rem;
    }
}

/* Pour les icônes Font Awesome (surcharge) - restreint à la page login */
.login-page .fas.fa-envelope,
.login-page .fas.fa-lock,
.login-page .fas.fa-eye,
.login-page .fas.fa-eye-slash {
    color: var(--primary-blue) !important;
    opacity: 1 !important;
}

/* Styles for legal links */
.legal-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

.legal-link {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-link:hover {
    text-decoration: underline;
    color: #1e4573;
}

.separator {
    margin: 0 0.5rem;
    color: #6b7280;
}

.company-info {
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.8rem;
} 