/**
 * Styles pour le système d'authentification
 */

/* Modal d'authentification */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.auth-modal-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.auth-modal-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-modal-header h3 {
    margin: 0;
    font-size: 1.3em;
}

.auth-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.auth-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.auth-modal-body {
    padding: 25px;
}

.auth-modal-body p {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.1em;
    line-height: 1.5;
}

.auth-password-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.auth-password-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.auth-error-message {
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 10px;
}

.auth-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.auth-submit-btn, .auth-cancel-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-submit-btn {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.auth-cancel-btn {
    background: #6c757d;
    color: white;
}

.auth-cancel-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.3);
}

/* Responsive design */
@media (max-width: 480px) {
    .auth-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .auth-modal-header {
        padding: 15px;
    }
    
    .auth-modal-body {
        padding: 20px;
    }
    
    .auth-modal-actions {
        flex-direction: column;
    }
}