/* Auth — École Française du Fitness (charte marine / rouge) */

.auth-body {
    min-height: 100dvh;
    background: var(--eff-sand, #f8fafc);
    font-family: var(--eff-font, "Plus Jakarta Sans", sans-serif);
}

.auth-shell {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 960px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    }
}

/* ── Panneau formulaire ── */
.auth-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    z-index: 2;
    background: var(--eff-sand, #f8fafc);
    overflow: hidden;
}

.auth-panel-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 45% at 0% 0%, rgba(230, 0, 18, .08), transparent 55%),
        radial-gradient(ellipse 55% 40% at 100% 100%, rgba(0, 24, 69, .06), transparent 50%);
}

.auth-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px clamp(20px, 4vw, 40px);
    border-bottom: 1px solid rgba(0, 24, 69, .08);
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(10px);
}

.auth-header .ps-logo-img {
    height: 44px;
    max-width: 210px;
    animation: none;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--eff-navy, #001845);
    text-decoration: none;
    opacity: .75;
    transition: opacity .15s, color .15s;
}

.auth-back:hover {
    opacity: 1;
    color: var(--eff-red, #e60012);
}

.auth-main {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px clamp(20px, 4vw, 40px) 40px;
}

.auth-card-wrap {
    width: 100%;
    max-width: 28rem;
}

.auth-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(0, 24, 69, .08);
    border-radius: 20px;
    padding: 28px 28px 24px;
    box-shadow: 0 20px 50px rgba(0, 24, 69, .1);
}

.auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 20px 0 0 20px;
    background: linear-gradient(180deg, #e60012 0%, #ff4d5a 100%);
}

.auth-mobile-tagline {
    display: block;
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--eff-navy, #001845);
    line-height: 1.45;
}

.auth-mobile-tagline em {
    display: block;
    margin-top: 4px;
    font-style: normal;
    color: var(--eff-red, #e60012);
    font-weight: 800;
}

@media (min-width: 960px) {
    .auth-mobile-tagline { display: none; }
}

/* ── Contenu carte ── */
.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--eff-navy, #001845);
    background: rgba(0, 24, 69, .06);
    margin-bottom: 14px;
}

.auth-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--eff-red, #e60012);
}

.auth-title {
    margin: 0 0 8px;
    font-size: clamp(1.65rem, 3.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.12;
    color: var(--eff-navy, #001845);
}

.auth-subtitle {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--eff-muted, #706f6c);
    font-weight: 500;
}

.auth-role-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    border-radius: 12px;
    background: var(--eff-sand, #f8fafc);
    border: 1px solid rgba(0, 24, 69, .08);
}

.auth-role {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: var(--eff-muted, #706f6c);
    transition: background .15s, color .15s, box-shadow .15s;
}

.auth-role.is-active {
    background: #fff;
    color: var(--eff-navy, #001845);
    box-shadow: 0 4px 14px rgba(0, 24, 69, .08);
}

.auth-role:not(.is-active):hover {
    color: var(--eff-navy, #001845);
}

.auth-field {
    margin-bottom: 16px;
}

.auth-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--eff-muted, #706f6c);
    margin-bottom: 7px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: inline-flex;
}

.auth-input {
    width: 100%;
    border: 1px solid rgba(0, 24, 69, .12);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
    color: var(--eff-ink, #1b1b18);
}

.auth-input-wrap:has(.auth-input-icon) .auth-input {
    padding-left: 42px;
}

.auth-input::placeholder { color: #94a3b8; }

.auth-input:hover {
    border-color: rgba(0, 24, 69, .2);
}

.auth-input:focus {
    border-color: rgba(230, 0, 18, .45);
    box-shadow: 0 0 0 3px rgba(230, 0, 18, .12);
}

.auth-field:focus-within .auth-input-icon {
    color: var(--eff-red, #e60012);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 20px;
    flex-wrap: wrap;
}

.auth-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--eff-red, #e60012);
    text-decoration: none;
}

.auth-link:hover {
    color: var(--eff-red-dark, #c40010);
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #e60012 0%, #c40010 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 13px 16px;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, filter .15s;
    letter-spacing: -.01em;
}

.auth-submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 10px 28px rgba(230, 0, 18, .28);
    transform: translateY(-1px);
}

.auth-footer {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 24, 69, .08);
    display: grid;
    gap: 10px;
    text-align: center;
    font-size: 13px;
    color: var(--eff-muted, #706f6c);
    font-weight: 500;
    line-height: 1.5;
}

.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.auth-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ── Panneau visuel ── */
.auth-visual {
    display: none;
    position: relative;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--eff-navy, #001845);
}

@media (min-width: 960px) {
    .auth-visual { display: block; }
}

.auth-visual-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.auth-visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 24, 69, .92) 0%, rgba(0, 24, 69, .45) 42%, rgba(0, 24, 69, .25) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 24, 69, .75) 100%);
}

.auth-visual-inner {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(32px, 5vw, 56px);
    gap: 28px;
}

.auth-visual-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(8px);
}

.auth-visual-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--eff-red, #e60012);
    box-shadow: 0 0 0 4px rgba(230, 0, 18, .25);
}

.auth-visual-headline {
    max-width: 16ch;
    margin: 0;
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.08;
    color: #fff;
}

.auth-visual-headline em {
    display: block;
    margin-top: 8px;
    font-style: normal;
    color: #ff6b76;
}

.auth-visual-lead {
    max-width: 42ch;
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .78);
    font-weight: 500;
}

.auth-visual-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 420px;
}

.auth-visual-kpi {
    padding: 14px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(6px);
}

.auth-visual-kpi strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.auth-visual-kpi span {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

/* ── Contenu formulaire (login multi-étapes) ── */
.auth-intro { margin-bottom: 22px; }

.auth-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
}

.auth-heading .auth-title { margin: 0; }

.auth-title .ps-accent-word {
    color: var(--eff-red, #e60012);
    font-style: normal;
}

.auth-lead {
    margin: 0 0 16px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--eff-muted, #706f6c);
    font-weight: 500;
}

.auth-lead--hint {
    margin: 0 0 14px;
    font-size: 12px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.45;
    color: var(--eff-muted, #706f6c);
}

.auth-lead strong {
    color: var(--eff-navy, #001845);
    font-weight: 700;
}

.auth-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.auth-features li {
    position: relative;
    padding-left: 22px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--eff-muted, #706f6c);
    font-weight: 500;
}

.auth-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--eff-red, #e60012);
    transform: rotate(45deg);
}

.auth-form-block {
    padding-top: 22px;
    border-top: 1px solid rgba(0, 24, 69, .08);
}

.auth-form { margin: 0; }

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--eff-muted, #706f6c);
    cursor: pointer;
    user-select: none;
}

.auth-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--eff-red, #e60012);
    cursor: pointer;
}

.auth-row--between {
    justify-content: space-between;
}

.auth-student {
    font-size: 13px;
    font-weight: 600;
    color: var(--eff-muted, #706f6c);
    text-decoration: none;
}

.auth-student:hover { color: var(--eff-navy, #001845); }

.auth-footer-link {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
}

.auth-footer-link a {
    color: var(--eff-red, #e60012);
    font-weight: 600;
    text-decoration: none;
}

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

@media (max-width: 420px) {
    .auth-features { display: none; }
}
