/* login.css (styles existants conservés) */
.kgi-card {
    padding: var(--spacing-xl);
    text-align: center;
}

h1 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* --- Nouveaux styles pour la Modal d'Erreur --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.25s ease-in-out;
}

.modal-card {
    background: #ffffff;
    padding: var(--spacing-xl);
    border-radius: var(--radius-sm, 8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 380px;
    text-align: center;
    animation: scaleUp 0.25s ease-in-out;
}

.modal-header h3 {
    color: #e74c3c;
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-body {
    color: #4a5568;
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
    line-height: 1.4;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.btn-modal-close {
    width: 100%;
    padding: 0.65rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-modal-close:hover {
    opacity: 0.9;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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