/* ----------------------------------------------------------------------
 * Roller Club Héricourt — Styles Espace Authentification (Connexion / Inscription)
 * Design ultra-moderne, épuré, responsive, typographie affinée
 * ---------------------------------------------------------------------- */

.auth-wrapper {
    min-height: calc(100vh - 88px);
    background: radial-gradient(circle at top right, rgba(11, 111, 227, 0.12) 0%, transparent 50%),
                radial-gradient(circle at bottom left, rgba(251, 74, 21, 0.08) 0%, transparent 45%),
                #06101e;
    color: #f8fafc;
    padding: 3.5rem 0 5rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.auth-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4.5rem;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    width: min(1140px, calc(100% - 40px));
}

/* --- COLONNE GAUCHE : VITRINE CLUB --- */
.auth-hero {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(251, 74, 21, 0.12);
    border: 1px solid rgba(251, 74, 21, 0.3);
    color: #ff7849;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fb4a15;
    box-shadow: 0 0 8px #fb4a15;
}

.auth-hero-title {
    font-family: var(--serif, "Barlow Condensed", Impact, sans-serif);
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    line-height: 0.95;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    color: #ffffff;
}

.auth-hero-title em {
    font-style: italic;
    color: #fb4a15;
    display: block;
}

.auth-hero-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0;
    max-width: 480px;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.auth-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.auth-feature-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    place-items: center;
    color: #38bdf8;
    flex-shrink: 0;
}

.auth-feature-text h4 {
    margin: 0 0 2px 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
}

.auth-feature-text p {
    margin: 0;
    font-size: 0.84rem;
    color: #94a3b8;
    line-height: 1.45;
}

.auth-security-reassurance {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
    font-size: 0.78rem;
}

/* --- COLONNE DROITE : CARTE AUTH PRO --- */
.auth-card {
    background: rgba(13, 26, 46, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Sélecteur d'onglets façon SaaS (Segmented Switcher) */
.auth-tabs {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 2rem;
}

.auth-tab-btn {
    appearance: none;
    border: none;
    background: transparent;
    padding: 10px 16px;
    border-radius: 8px;
    color: #94a3b8;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    text-decoration: none;
    display: block;
    user-select: none;
}

.auth-tab-btn:hover {
    color: #ffffff;
}

.auth-tab-btn.is-active {
    background: #ffffff;
    color: #091322;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* En-tête du formulaire actif */
.auth-form-head {
    margin-bottom: 1.8rem;
}

.auth-form-title {
    margin: 0 0 6px 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.auth-form-subtitle {
    margin: 0;
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.45;
}

/* Alerte Flash de notification */
.auth-flash {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.auth-flash-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.auth-flash-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

/* Structure des formulaires */
.auth-form {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-form.is-active {
    display: flex;
    animation: authFadeIn 0.25s ease-out;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-forgot-link {
    font-size: 0.74rem;
    font-weight: 600;
    color: #38bdf8;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
    transition: color 0.15s ease, border-bottom-color 0.15s ease;
    border-bottom: 1px solid transparent;
}

.auth-forgot-link:hover {
    color: #7dd3fc;
    border-bottom-color: #7dd3fc;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    color: #64748b;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-input {
    appearance: none;
    width: 100%;
    box-sizing: border-box;
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 14px 12px 42px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
}

.auth-input::placeholder {
    color: #475569;
}

.auth-input:focus {
    border-color: #38bdf8;
    background: rgba(2, 6, 23, 0.7);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.auth-input-wrap.has-toggle .auth-input {
    padding-right: 42px;
}

/* Bouton œil afficher / masquer le mot de passe */
.auth-pw-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #64748b;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.auth-pw-toggle:hover {
    color: #cbd5e1;
}

/* Ligne duo pour prénom / nom */
.auth-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-hint {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}

/* Bouton principal de soumission */
.auth-submit-btn {
    appearance: none;
    border: none;
    width: 100%;
    background: linear-gradient(135deg, #fb4a15 0%, #ea3805 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 0.5rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(251, 74, 21, 0.35);
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(251, 74, 21, 0.45);
    background: linear-gradient(135deg, #ff5b29 0%, #f0420f 100%);
}

.auth-submit-btn:active {
    transform: translateY(1px);
}

/* Bascule rapide entre modes */
.auth-switch-prompt {
    text-align: center;
    margin-top: 1.4rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: #94a3b8;
}

.auth-switch-link {
    color: #38bdf8;
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}

.auth-switch-link:hover {
    border-bottom-color: #38bdf8;
}

/* Micro-badge de sécurité */
.auth-card-footer {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.74rem;
    color: #64748b;
}

.auth-card-footer svg {
    color: #10b981;
}

/* --- RESPONSIVE MOBILE & TABLETTE --- */
@media (max-width: 960px) {
    .auth-wrapper {
        padding: 2.5rem 0 4rem;
    }
    .auth-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 520px;
    }
    .auth-hero {
        text-align: center;
        align-items: center;
    }
    .auth-badge {
        align-self: center;
    }
    .auth-hero-desc {
        max-width: 100%;
    }
    .auth-features {
        display: none; /* Simplification sur mobile pour focus rapide sur le formulaire */
    }
    .auth-security-reassurance {
        justify-content: center;
    }
    .auth-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-duo {
        grid-template-columns: 1fr;
    }
    .auth-hero-title {
        font-size: 2.4rem;
    }
}

