/* --- Page Login CartePostaleVirtuelle.com --- */

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-wow);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

/* Titre avec le dégradé du site */
.auth-card h2 { 
    text-align: center; 
    font-size: 1.8rem;
    font-weight: 800; 
    background: var(--grad-wow); 
    background-clip: text; /* Version standard */
    -webkit-background-clip: text; /* Version pour Chrome/Safari */
    -webkit-text-fill-color: transparent; 
    margin-bottom: 2rem; 
    margin-top: 0;
}

/* Champs du formulaire */
.field {
    margin-bottom: 20px;
}

.field label { 
    display: block;
    color: var(--text-light); 
    font-size: 0.75rem; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.field input {
    width: 100%;
    box-sizing: border-box; /* Crucial pour que le padding ne dépasse pas */
    padding: 14px 16px;
    border-radius: 12px;
    background: #f1f5f9; 
    border: 2px solid transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    transition: 0.3s all ease;
}

.field input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Bouton Connexion */
.btn-auth {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: var(--grad-wow);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
    margin-top: 10px;
}

.btn-auth:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(99, 102, 241, 0.5);
    filter: brightness(1.1);
}

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

/* Lien d'inscription */
.link { 
    text-align: center; 
    margin-top: 25px; 
    font-size: 0.9rem; 
    color: var(--text-light); 
}

.link a { 
    color: var(--primary); 
    text-decoration: none; 
    font-weight: 700; 
    margin-left: 5px;
    transition: 0.2s;
}

.link a:hover {
    text-decoration: underline;
}

/* Alertes Erreurs */
.error {
    background: #fff1f2;
    color: var(--secondary);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid rgba(244, 63, 94, 0.2);
}

/* Honeypot */
.hp-field { 
    display: none !important; 
}