/* ============================================
   AUTH.CSS - Styles d'authentification
   ============================================ */

/* ----------------
   AUTHENTICATION BOX
   ---------------- */
.auth-box {
    width: 100%;
}

.google-signin {
    margin-bottom: var(--spacing-md);
}

/* ----------------
   BOUTONS
   ---------------- */
button {
    width: 100%;
    padding: var(--spacing-sm);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

button:active {
    transform: translateY(0);
}

.btn-google {
    background: var(--background-card);
    color: var(--white);
    border: 2px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.btn-google:hover {
    background: var(--background-card-hover);
    border-color: var(--primary-color);
}

.google-icon {
    font-weight: bold;
    font-size: 20px;
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--background);
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--glow-primary);
}

.btn-logout {
    background: var(--error-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    width: auto;
}

.btn-logout:hover {
    background: #d32f2f;
}

.btn-test {
    background: var(--info-color);
    color: white;
    margin-top: var(--spacing-sm);
}

.btn-test:hover {
    background: #1976D2;
}

/* ----------------
   DIVIDER
   ---------------- */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: var(--spacing-md) 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-light);
}

.divider span {
    padding: 0 var(--spacing-sm);
}

/* ----------------
   FORMULAIRES
   ---------------- */
.auth-form {
    margin-top: var(--spacing-md);
}

.input-field {
    width: 100%;
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: var(--transition);
    background: var(--background);
    color: var(--white);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--glow-primary);
}

.input-field::placeholder {
    color: var(--text-secondary);
}

.switch-auth {
    text-align: center;
    margin-top: var(--spacing-md);
    font-size: 14px;
    color: var(--text-secondary);
}

.switch-auth a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.switch-auth a:hover {
    text-decoration: underline;
}


/* Responsive Auth */
/* ----------------
   RESPONSIVE
   ---------------- */
@media (max-width: 600px) {
    .container {
        padding: var(--spacing-md);
    }
    
    h1 {
        font-size: 24px;
    }
    
    .user-header {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .btn-logout {
        width: 100%;
    }
}

/* ----------------
   MOT DE PASSE OUBLIÉ
   ---------------- */
.forgot-password {
    text-align: center;
    margin: var(--spacing-xs) 0 var(--spacing-sm) 0;
    font-size: 13px;
}

.forgot-password a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.forgot-password a:hover {
    color: var(--primary);
}

/* Modal small pour reset password */
.modal-small {
    max-width: 380px;
    padding: var(--spacing-lg);
    text-align: center;
}

.modal-small h2 {
    margin-bottom: var(--spacing-xs);
    font-size: 20px;
    color: var(--text-color);
}

.modal-small .modal-info {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.modal-small .input-field {
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.modal-small .btn-primary {
    margin-top: var(--spacing-xs);
}
