/* static/css/login.css */
.login-container {
    background: linear-gradient(135deg, #e0e7ff, #c3dafe);
    min-height: 100vh;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.login-card {
    border-radius: 20px;
    border: none;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
}

.login-card-body {
    padding: 2.5rem;
}

.login-title {
    color: #1e3a8a;
    font-weight: 700;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-title i {
    color: #f59e0b; /* Jaune pour l'icône, en cohérence avec le bouton */
    font-size: 1.5rem;
}

.login-alert {
    border-radius: 10px;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    position: relative;
}

.login-alert-danger {
    background-color: #fef2f2;
    color: #dc2626;
    border-color: #fee2e2;
}

.login-form-label {
    font-weight: 500;
    color: #1e40af;
    font-size: 0.9rem;
}

.form-floating label {
    padding-left: 3.5rem;
    color: #6b7280;
}

.input-group-text.login-icon {
    background-color: #fefce8; /* Fond jaune pâle pour les icônes */
    border: 1px solid #fef08a;
    border-right: none;
    color: #f59e0b; /* Jaune pour les icônes */
    font-size: 1rem;
}

.form-control {
    border: 1px solid #fef08a; /* Bordure jaune pâle */
    border-left: none;
    border-radius: 0 10px 10px 0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #f59e0b; /* Jaune au focus */
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
    background-color: #fff;
}

.form-control::placeholder {
    color: #9ca3af;
}

.login-text-danger {
    font-size: 0.85rem;
    color: #dc2626;
    margin-top: 0.25rem;
}

.login-btn-primary {
    background: linear-gradient(135deg, #facc15, #f59e0b); /* Dégradé jaune */
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937; /* Texte gris foncé pour contraste */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.login-btn-primary:hover {
    background: linear-gradient(135deg, #eab308, #d97706); /* Dégradé plus foncé au survol */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.login-btn-primary:disabled {
    background: linear-gradient(135deg, #9ca3af, #d1d5db);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    color: #6b7280;
}

.login-btn-primary i {
    transition: transform 0.3s ease;
}

.login-btn-primary:hover i {
    transform: translateX(5px);
}

.login-loader {
    display: none;
    border: 4px solid #fefce8; /* Fond jaune pâle pour le loader */
    border-top: 4px solid #f59e0b; /* Jaune pour le loader */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: login-spin 1s linear infinite;
    margin: 1.5rem auto;
}

@keyframes login-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.login-forgot-link {
    font-size: 0.85rem;
    color: #f59e0b; /* Jaune pour le lien */
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-forgot-link:hover {
    color: #d97706; /* Jaune plus foncé au survol */
    text-decoration: underline;
}

.login-signup-link {
    font-size: 0.9rem;
    color: #6b7280;
}

.login-signup-anchor {
    color: #f59e0b; /* Jaune pour le lien */
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-signup-anchor:hover {
    color: #d97706; /* Jaune plus foncé au survol */
    text-decoration: underline;
}

