/* 
 * GohiShop - Authentification Stylesheet
 * Gère : login, register, forgot-password, reset-password
 */

.auth-section {
    padding: 10rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, rgba(0, 123, 255, 0.05), transparent 400px);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 3.5rem;
    border-radius: 2.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Modificateur pour les formulaires plus larges (ex: Register) */
.auth-card.auth-wide {
    max-width: 600px;
}

.auth-header { 
    text-align: center; 
    margin-bottom: 2.5rem; 
}

.auth-title { 
    font-size: 2.2rem; 
    font-weight: 900; 
    color: var(--cpw-text); 
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.auth-subtitle { 
    color: var(--cpw-muted); 
    font-size: 1rem; 
    line-height: 1.6; 
}

/* Grille spécifique pour l'inscription */
.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.auth-card .form-group { 
    margin-bottom: 1.5rem; 
}

/* Ligne mixte pour label et lien "mot de passe oublié" */
.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.auth-card label { 
    display: block; 
    font-size: 0.85rem; 
    font-weight: 800; 
    color: var(--cpw-muted); 
    padding-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.6rem;
}

.auth-label-row label { margin-bottom: 0; }

/* Styles des champs de saisie Glassmorphism */
.auth-card .glass-input {
    width: 100%;
    padding: 1.1rem 1.4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--glass-border);
    border-radius: 1.25rem;
    color: var(--cpw-text);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card .glass-input:focus {
    border-color: var(--cpw-primary);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.12);
}

/* Bouton principal d'action */
.btn-full-auth {
    width: 100%;
    padding: 1.1rem;
    border-radius: 1.25rem;
    font-weight: 800;
    font-size: 1.1rem;
    margin-top: 1rem;
    box-shadow: 0 10px 20px -5px rgba(0, 123, 255, 0.3);
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-full-auth:active {
    transform: scale(0.98);
}

/* Pied de carte */
.auth-footer { 
    margin-top: 2.5rem; 
    text-align: center; 
    font-size: 0.95rem; 
    border-top: 1px solid var(--glass-border); 
    padding-top: 2rem; 
    color: var(--cpw-muted);
}

.auth-link { 
    color: var(--cpw-primary); 
    font-weight: 800; 
    text-decoration: none; 
    margin-left: 0.25rem;
}

.auth-link:hover { text-decoration: underline; }

.auth-link-sm {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cpw-primary);
    text-decoration: none;
}

/* Wrapper pour icônes et bouton de mot de passe */
.input-wrapper { 
    position: relative; 
    width: 100%;
}

.btn-toggle-pwd { 
    position: absolute; 
    right: 1.25rem; 
    top: 50%;
    transform: translateY(-50%);
    background: none; 
    border: none; 
    color: var(--cpw-muted); 
    cursor: pointer; 
    font-size: 1.1rem;
    z-index: 2;
    display: flex;
    align-items: center;
}

/* Alertes spécifiques aux formulaires */
.auth-message {
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: none;
}

.auth-message.error { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); display: block; }
.auth-message.success { background: rgba(34, 197, 94, 0.1); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.2); display: block; }

/* Adaptation mobile */
@media (max-width: 600px) {
    .auth-card { padding: 2.5rem 1.5rem; border-radius: 2rem; }
    .auth-grid-2 { grid-template-columns: 1fr; }
    .auth-title { font-size: 1.8rem; }
}