/* =============================================================
   auth.css - Interface d'Authentification SaaS Premium
   ============================================================= */

.auth-section {
    padding: 160px 24px 120px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top, rgba(0, 210, 255, 0.03) 0%, var(--bg-main) 70%);
}

.auth-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    padding: 44px 36px;
    box-shadow: 0 20px 50px rgba(7, 9, 13, 0.7);
    position: relative;
    overflow: hidden;
}

/* Effet décoratif de ligne néon supérieure */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-header h2 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

.auth-header h2 span { color: var(--primary); }
.auth-header p { color: var(--text-muted); font-size: 14px; margin-top: 8px; }

/* Conteneurs de saisie modernisés avec icônes intégrées */
.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Positionnement de l'icône à gauche du texte */
.input-icon-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
    pointer-events: none;
}

.input-icon-wrapper input {
    width: 100%;
    background-color: rgba(11, 14, 20, 0.7);
    border: 1px solid var(--border-color);
    padding: 13px 16px 13px 44px; /* Padding étendu à gauche pour l'icône */
    border-radius: 10px;
    color: var(--text-white);
    font-family: var(--font-sans);
    font-size: 14px;
    transition: var(--transition);
}

/* État focus avec effet de halo lumineux */
.input-icon-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-main);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
}

.input-icon-wrapper input:focus ~ i {
    color: var(--primary);
}

/* Case à cocher ergonomique */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.form-check input {
    accent-color: var(--primary);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.form-check label {
    margin-bottom: 0;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    user-select: none;
}

/* Grand bouton de validation soumission */
.auth-submit-btn {
    width: 100%;
    background-image: linear-gradient(135deg, var(--primary) 0%, #00A2C4 100%);
    color: var(--bg-main);
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.auth-submit-btn:hover {
    box-shadow: 0 0 24px rgba(0, 210, 255, 0.4);
    transform: translateY(-1px);
}

/* Système de bascule AJAX */
.auth-switch {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(34, 44, 63, 0.5);
    font-size: 13px;
    color: var(--text-muted);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    font-size: 13px;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--text-white);
    text-shadow: 0 0 8px var(--primary);
}

/* Alertes d'erreurs et validations */
.auth-error-msg, .auth-success-msg {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    display: none;
    align-items: center;
    gap: 10px;
}

.auth-error-msg { background-color: rgba(231, 76, 60, 0.08); border: 1px solid rgba(231, 76, 60, 0.3); color: #ef5350; }
.auth-success-msg { background-color: rgba(46, 204, 113, 0.08); border: 1px solid rgba(46, 204, 113, 0.3); color: #2ecc71; }

.field-error {
    color: #ef5350;
    font-size: 11px;
    font-weight: 500;
    margin-top: 6px;
    display: none;
    padding-left: 4px;
}