/**
 * PATRIX - Styles d'Authentification
 */

.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px; /* Contrainte PC */
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.auth-form h2 {
    color: white;
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.auth-input-group {
    margin-bottom: 20px;
}

.auth-input-group label {
    display: block;
    color: white;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.auth-input-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.auth-input-group input:focus {
    outline: none;
    border-color: white;
    background: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.auth-input-group small {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    font-size: 12px;
}

.auth-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.auth-btn-primary {
    background: white;
    color: #667eea;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

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

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.auth-links a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.auth-message {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 16px;
    animation: slideIn 0.4s ease;
}

.auth-message.success {
    color: #10b981;
}

.auth-message.error {
    color: #ef4444;
}

.hidden {
    display: none !important;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .auth-modal-content {
        padding: 30px 20px;
        width: 95%;
    }

    .auth-form h2 {
        font-size: 24px;
    }

    .auth-links {
        flex-direction: column;
        align-items: center;
    }
}
