/* WiseBled — Page Connexion */

/* Header allégé sur la page connexion */
.page-connexion .site-chrome-header {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
    box-shadow: 0 8px 32px -28px rgba(15, 23, 42, 0.12);
}
.page-connexion main {
    background: transparent;
}

.page-connexion {
    --auth-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --auth-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --auth-glass: rgba(255, 255, 255, 0.88);
    --auth-glass-strong: rgba(255, 255, 255, 0.96);
    --auth-primary: #4f46e5;
    --auth-primary-light: #6366f1;
    --auth-violet: #7c3aed;
    --auth-emerald: #10b981;
    --auth-slate: #0f172a;
    --auth-muted: #64748b;
    --auth-touch: 3rem;
    --auth-radius-lg: 1.5rem;
    --auth-radius-xl: 1.85rem;
    --auth-shadow-card:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 28px 64px -32px rgba(15, 23, 42, 0.22),
        0 0 0 1px rgba(99, 102, 241, 0.06);
    background: #eef2ff;
}

.page-connexion .gradient-text {
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-light) 42%, var(--auth-violet) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-connexion .auth-mesh {
    position: relative;
    overflow-x: clip;
    min-height: calc(100dvh - 4rem);
    background:
        radial-gradient(ellipse 88% 58% at 12% -6%, rgba(99, 102, 241, 0.17), transparent 54%),
        radial-gradient(ellipse 65% 48% at 98% 22%, rgba(16, 185, 129, 0.09), transparent 48%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 48%, #f1f5f9 100%);
}
.page-connexion .auth-mesh::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: clamp(32px, 5vw, 48px) clamp(32px, 5vw, 48px);
    mask-image: radial-gradient(ellipse 82% 52% at 50% 0%, #000, transparent 76%);
    pointer-events: none;
}
.page-connexion .auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(78px);
    pointer-events: none;
    animation: authOrbFloat 16s ease-in-out infinite alternate;
}
.page-connexion .auth-orb-1 {
    width: min(400px, 68vw);
    height: min(400px, 68vw);
    top: -90px;
    right: -4%;
    background: rgba(99, 102, 241, 0.22);
}
.page-connexion .auth-orb-2 {
    width: min(260px, 48vw);
    height: min(260px, 48vw);
    bottom: 8%;
    left: -70px;
    background: rgba(16, 185, 129, 0.14);
    animation-delay: -5s;
}
@keyframes authOrbFloat {
    from { transform: translate(0, 0); }
    to { transform: translate(14px, 20px) scale(1.04); }
}

.page-connexion .auth-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(0.875rem, 3vw, 1.5rem) clamp(3rem, 8vw, 5rem);
}

.page-connexion .auth-layout {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: center;
}
@media (min-width: 1024px) {
    .page-connexion .auth-layout {
        grid-template-columns: minmax(0, 1.12fr) minmax(380px, 440px);
        gap: clamp(2.5rem, 5vw, 4rem);
        align-items: center;
    }
    .page-connexion .auth-trust {
        position: sticky;
        top: 6rem;
        align-self: start;
    }
    .page-connexion .auth-main {
        max-width: 440px;
        width: 100%;
        margin-inline: 0;
    }
    .page-connexion .auth-security-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .page-connexion .auth-security-item {
        padding: 0.75rem 0.8rem;
    }
}
@media (min-width: 1280px) {
    .page-connexion .auth-wrap {
        max-width: 80rem;
    }
    .page-connexion .auth-layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(400px, 460px);
    }
    .page-connexion .auth-trust-title {
        font-size: 2.85rem;
    }
}

/* Panneau confiance (desktop) */
.page-connexion .auth-trust {
    display: none;
}
@media (min-width: 1024px) {
    .page-connexion .auth-trust {
        display: block;
        padding: 1rem 0;
    }
}
.page-connexion .auth-hero-mobile {
    position: relative;
    text-align: center;
    margin-bottom: 1.15rem;
    border-radius: var(--auth-radius-xl);
    overflow: hidden;
}
.page-connexion .auth-hero-mobile-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, rgba(79, 70, 229, 0.14) 0%, rgba(99, 102, 241, 0.06) 45%, rgba(16, 185, 129, 0.08) 100%),
        radial-gradient(circle at 80% 0%, rgba(124, 58, 237, 0.2), transparent 55%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: inherit;
}
.page-connexion .auth-hero-mobile-inner {
    position: relative;
    z-index: 1;
    padding: 1.35rem 1.15rem 1.25rem;
    animation: authHeroIn 0.65s var(--auth-ease) both;
}
@keyframes authHeroIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.page-connexion .auth-hero-tagline {
    margin-top: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--auth-muted);
    line-height: 1.45;
}
@media (min-width: 1024px) {
    .page-connexion .auth-hero-mobile { display: none; }
}

.page-connexion .auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--auth-primary);
    background: var(--auth-glass);
    border: 1px solid rgba(99, 102, 241, 0.14);
    box-shadow: 0 4px 24px -10px rgba(99, 102, 241, 0.28);
    backdrop-filter: blur(14px);
    margin-bottom: 1rem;
}

.page-connexion .auth-trust-title {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}
.page-connexion .auth-trust-desc {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.65;
    max-width: 28rem;
    margin-bottom: 2rem;
}

.page-connexion .auth-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.page-connexion .auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 1.15rem;
    background: var(--auth-glass);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 28px -14px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
    transition: transform 0.35s var(--auth-ease), box-shadow 0.35s ease;
}
@media (hover: hover) {
    .page-connexion .auth-feature:hover {
        transform: translateX(4px);
        box-shadow: 0 12px 32px -12px rgba(79, 70, 229, 0.18);
    }
}
.page-connexion .auth-feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.14), rgba(99, 102, 241, 0.05));
    color: var(--auth-primary);
}
.page-connexion .auth-feature strong {
    display: block;
    font-size: 0.9rem;
    color: #0f172a;
    margin-bottom: 0.15rem;
}
.page-connexion .auth-feature span {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.45;
}

/* Carte connexion */
.page-connexion .auth-card-shell {
    width: 100%;
}
.page-connexion .auth-card {
    background: var(--auth-glass-strong);
    border: 1px solid rgba(255, 255, 255, 0.98);
    border-radius: var(--auth-radius-xl);
    box-shadow: var(--auth-shadow-card);
    backdrop-filter: blur(24px) saturate(1.15);
    -webkit-backdrop-filter: blur(24px) saturate(1.15);
    overflow: hidden;
    transition: transform 0.45s var(--auth-ease), box-shadow 0.45s var(--auth-ease);
}
@media (hover: hover) {
    .page-connexion .auth-card:hover {
        transform: translateY(-3px);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 1) inset,
            0 36px 80px -28px rgba(79, 70, 229, 0.2),
            0 0 0 1px rgba(99, 102, 241, 0.08);
    }
}

.page-connexion .auth-lottie-zone {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(1rem, 3vw, 1.5rem);
    background:
        radial-gradient(ellipse 80% 70% at 50% 0%, rgba(99, 102, 241, 0.12), transparent 70%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.9), transparent);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}
.page-connexion #lottie-connexion-step {
    width: clamp(4.5rem, 16vw, 7.5rem);
    height: clamp(4.5rem, 16vw, 7.5rem);
}

.page-connexion .auth-form-body {
    padding: clamp(1.25rem, 4vw, 2rem);
}

.page-connexion .auth-panel-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: clamp(1.2rem, 3.5vw, 1.4rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0;
    letter-spacing: -0.02em;
}
.page-connexion .auth-panel-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.14), rgba(99, 102, 241, 0.05));
    color: var(--auth-primary);
    box-shadow: 0 4px 14px -6px rgba(99, 102, 241, 0.35);
}

.page-connexion .auth-success-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(209, 250, 229, 0.5));
    border: 1px solid #6ee7b7;
    animation: authBannerIn 0.55s var(--auth-ease);
}
@keyframes authBannerIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.page-connexion .auth-success-banner strong { color: #047857; font-size: 0.875rem; }
.page-connexion .auth-success-banner p { color: #059669; font-size: 0.8125rem; margin-top: 0.25rem; line-height: 1.5; }

.page-connexion .auth-alert {
    display: none;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.95rem 1.1rem;
    margin-bottom: 1.25rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}
.page-connexion .auth-alert.is-visible {
    display: flex;
    animation: authBannerIn 0.4s var(--auth-ease);
}

.page-connexion .auth-fields {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

/* Champs — validation (aligné inscription) */
.page-connexion .field-group {
    position: relative;
    transition: transform 0.35s var(--auth-spring);
}
.page-connexion .field-group label.auth-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.45rem;
    transition: color 0.25s ease;
}
.page-connexion .field-group.has-error .auth-label { color: #b91c1c; }
.page-connexion .field-group.has-success .auth-label { color: #047857; }
.page-connexion .field-group .req { color: #ef4444; }

.page-connexion .input-field {
    width: 100%;
    min-height: var(--auth-touch);
    padding: 0.8rem 1rem;
    border-radius: 0.95rem;
    border: 2px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.95);
    font-size: max(16px, 0.9375rem);
    color: #0f172a;
    transition:
        border-color 0.3s var(--auth-ease),
        box-shadow 0.3s var(--auth-ease),
        background-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}
.page-connexion .input-field.has-icon-r { padding-right: 2.85rem; }
.page-connexion .field-group.is-focused:not(.has-error):not(.has-success) .input-field {
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
}
.page-connexion .field-group.is-typing:not(.has-error):not(.has-success) .input-field {
    border-color: #a5b4fc;
}
.page-connexion .field-group.has-error .input-field,
.page-connexion .input-field.is-invalid {
    border-color: #f87171 !important;
    background: linear-gradient(0deg, rgba(254, 242, 242, 0.65), rgba(254, 242, 242, 0.65)), #fff;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}
.page-connexion .field-group.has-success .input-field,
.page-connexion .input-field.is-valid {
    border-color: #34d399 !important;
    background: linear-gradient(0deg, rgba(236, 253, 245, 0.7), rgba(236, 253, 245, 0.7)), #fff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}
.page-connexion .field-group.is-pulse-error { animation: authShake 0.45s var(--auth-ease); }
@keyframes authShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-2px); }
}

.page-connexion .field-valid,
.page-connexion .field-checking {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}
.page-connexion .field-valid { color: #10b981; }
.page-connexion .field-valid.is-pop { animation: authValidPop 0.55s var(--auth-spring); }
@keyframes authValidPop {
    0% { transform: translateY(-50%) scale(0.4); opacity: 0; }
    55% { transform: translateY(-50%) scale(1.15); }
    100% { transform: translateY(-50%) scale(1); opacity: 1; }
}
.page-connexion .auth-spin { animation: authSpin 0.75s linear infinite; }
@keyframes authSpin { to { transform: rotate(360deg); } }

.page-connexion .field-error {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-4px);
    transition:
        max-height 0.35s var(--auth-ease),
        opacity 0.3s ease,
        margin-top 0.35s var(--auth-ease),
        transform 0.35s var(--auth-ease);
}
.page-connexion .field-error.is-visible {
    max-height: 5rem;
    margin-top: 0.5rem;
    opacity: 1;
    transform: translateY(0);
}
.page-connexion .field-error-icon { flex-shrink: 0; color: #ef4444; margin-top: 0.1rem; }
.page-connexion .field-error-msg { font-size: 0.8125rem; font-weight: 600; color: #b91c1c; line-height: 1.45; }

.page-connexion .auth-forgot {
    margin-top: 0.5rem;
}
.page-connexion .auth-forgot button {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--auth-primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}
.page-connexion .auth-forgot button:hover { text-decoration: underline; color: var(--auth-violet); }

.page-connexion .auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 3.15rem;
    margin-top: 1.35rem;
    padding: 0.95rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    font-size: max(16px, 0.9375rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #4338ca 0%, var(--auth-primary) 38%, var(--auth-violet) 100%);
    background-size: 200% auto;
    box-shadow:
        0 14px 36px -14px rgba(79, 70, 229, 0.65),
        0 0 0 1px rgba(99, 102, 241, 0.15);
    transition: transform 0.3s var(--auth-ease), box-shadow 0.3s ease, opacity 0.2s;
}
.page-connexion .auth-btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 16px 40px -12px rgba(79, 70, 229, 0.6);
    background-position: right center;
}
.page-connexion .auth-btn:active:not(:disabled) { transform: scale(0.98); }
.page-connexion .auth-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none !important; }
.page-connexion .auth-btn.is-success {
    background: linear-gradient(135deg, #059669, #10b981);
}

.page-connexion .auth-footer-link {
    text-align: center;
    margin-top: clamp(1.25rem, 4vw, 1.75rem);
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    color: var(--auth-muted);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(8px);
}
.page-connexion .auth-footer-link a {
    color: var(--auth-primary);
    font-weight: 800;
}
.page-connexion .auth-footer-link a:hover {
    text-decoration: none;
    color: var(--auth-violet);
}

.page-connexion .password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    min-width: 2.5rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 0.55rem;
    cursor: pointer;
}
.page-connexion .password-toggle:hover {
    color: var(--auth-primary);
    background: rgba(99, 102, 241, 0.08);
}

/* Modal reset — ultra premium */
.page-connexion .auth-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 3vw, 1.25rem);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--auth-ease), visibility 0.4s;
}
.page-connexion .auth-modal.is-open {
    opacity: 1;
    visibility: visible;
}
.page-connexion .auth-modal-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79, 70, 229, 0.18), transparent 55%),
        rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(14px) saturate(1.2);
}
.page-connexion .auth-modal-shell {
    position: relative;
    width: 100%;
    max-width: 30rem;
    z-index: 1;
}
.page-connexion .auth-modal-glow {
    position: absolute;
    inset: -20px;
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.45), rgba(16, 185, 129, 0.25), rgba(124, 58, 237, 0.4));
    background-size: 200% 200%;
    filter: blur(28px);
    opacity: 0.55;
    animation: authBorderGlow 7s ease infinite;
    pointer-events: none;
}
.page-connexion .auth-modal-card {
    position: relative;
    width: 100%;
    max-height: calc(100dvh - 2rem);
    overflow: hidden auto;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 1.65rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 32px 80px -28px rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(24px);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.5s var(--auth-spring);
}
.page-connexion .auth-modal.is-open .auth-modal-card {
    transform: translateY(0) scale(1);
}

.page-connexion .auth-modal-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1.25rem 0.75rem;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.09) 0%, rgba(16, 185, 129, 0.04) 55%, transparent 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
}
.page-connexion .auth-modal-lottie-ring {
    position: absolute;
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    border: 2px dashed rgba(99, 102, 241, 0.22);
    animation: authRingSpin 14s linear infinite;
}
.page-connexion .auth-modal-lottie-glow {
    position: absolute;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.28), transparent 68%);
    animation: authLottieGlow 3s ease-in-out infinite alternate;
}
.page-connexion .auth-modal-lottie {
    position: relative;
    z-index: 1;
    width: clamp(6.5rem, 22vw, 9rem);
    height: clamp(6.5rem, 22vw, 9rem);
    transition: transform 0.5s var(--auth-spring);
}
.page-connexion .auth-modal-lottie.is-success-pop {
    animation: authLottieSuccess 0.65s var(--auth-spring);
}
@keyframes authLottieSuccess {
    0% { transform: scale(1); }
    45% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
.page-connexion .auth-modal-lottie-caption {
    position: relative;
    z-index: 1;
    margin-top: 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-align: center;
    max-width: 16rem;
    line-height: 1.4;
}

.page-connexion .auth-modal-security-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem 0;
}
.page-connexion .auth-modal-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #047857;
    background: rgba(236, 253, 245, 0.95);
    border: 1px solid #a7f3d0;
}

.page-connexion .auth-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.35rem 0;
}
.page-connexion .auth-modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}
.page-connexion .auth-modal-close {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0.85rem;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.25s var(--auth-spring);
}
.page-connexion .auth-modal-close:hover {
    background: rgba(99, 102, 241, 0.12);
    color: var(--auth-primary);
    transform: rotate(90deg);
}
.page-connexion .auth-modal-body {
    padding: 0 1.35rem 1.5rem;
}
.page-connexion .auth-modal-steps .auth-step-panel.is-hidden { display: none; }
.page-connexion .login-verify-step.is-hidden { display: none !important; }
.page-connexion #login-otp-error.is-visible,
.page-connexion #login-totp-error.is-visible {
    display: flex;
    max-height: 4rem;
    margin-top: 0.5rem;
    opacity: 1;
}
.page-connexion .auth-modal-steps .auth-step-panel.is-entering {
    animation: authPanelIn 0.42s var(--auth-ease);
}
@keyframes authPanelIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.page-connexion .auth-modal-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 1.15rem;
}
.page-connexion .auth-modal-otp-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.85rem;
    border-radius: 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #047857;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(209, 250, 229, 0.5));
    border: 1px solid #6ee7b7;
    animation: authBannerIn 0.45s var(--auth-ease);
}

.page-connexion .auth-reset-progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.35rem;
    padding: 0.5rem 0;
}
.page-connexion .auth-reset-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 4.5rem;
}
.page-connexion .auth-reset-step-label {
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    transition: color 0.3s ease;
}
.page-connexion .auth-reset-step.is-current .auth-reset-step-label { color: var(--auth-primary); }
.page-connexion .auth-reset-step.is-done .auth-reset-step-label { color: #059669; }
.page-connexion .auth-btn-secondary {
    background: #fff;
    color: #475569;
    border: 2px solid #e2e8f0;
    box-shadow: none;
}
.page-connexion .auth-btn-secondary:hover:not(:disabled) {
    background: #f8fafc;
    box-shadow: 0 4px 12px -6px rgba(15, 23, 42, 0.1);
}
.page-connexion .auth-code-input {
    text-align: center;
    letter-spacing: 0.45em;
    font-size: 1.15rem;
    font-weight: 700;
}

.page-connexion .auth-toast-host {
    position: fixed;
    bottom: max(1rem, env(safe-area-inset-bottom));
    right: max(1rem, env(safe-area-inset-right));
    left: max(1rem, env(safe-area-inset-left));
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    pointer-events: none;
}
@media (min-width: 480px) {
    .page-connexion .auth-toast-host { left: auto; max-width: 22rem; }
}
.page-connexion .auth-toast {
    pointer-events: auto;
    padding: 0.9rem 1.15rem;
    border-radius: 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 14px 36px -10px rgba(15, 23, 42, 0.35);
    animation: authBannerIn 0.4s var(--auth-ease);
}
.page-connexion .auth-toast.is-error { background: linear-gradient(135deg, #dc2626, #ef4444); }
.page-connexion .auth-toast.is-success { background: linear-gradient(135deg, #059669, #10b981); }

/* ═══ Premium & sécurité avancée ═══ */
.page-connexion .auth-aurora {
    position: absolute;
    inset: 0;
    background:
        conic-gradient(from 200deg at 70% 20%, rgba(99, 102, 241, 0.08), transparent 35%),
        conic-gradient(from 20deg at 10% 80%, rgba(16, 185, 129, 0.06), transparent 40%);
    pointer-events: none;
    animation: authAurora 20s linear infinite;
}
@keyframes authAurora {
    to { transform: rotate(360deg); }
}
.page-connexion .auth-orb-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 20%;
    background: rgba(124, 58, 237, 0.12);
    animation-delay: -8s;
}

.page-connexion .auth-badge--secure {
    position: relative;
    color: #047857;
    border-color: rgba(16, 185, 129, 0.35);
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.9));
}
.page-connexion .auth-badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    animation: authLivePulse 2s ease-out infinite;
}
@keyframes authLivePulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.page-connexion .auth-shield-visual {
    position: relative;
    width: 7rem;
    height: 7rem;
    margin: 0 auto 1.75rem;
    display: none;
}
@media (min-width: 1024px) {
    .page-connexion .auth-shield-visual { display: block; }
}
.page-connexion .auth-shield-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.2);
    animation: authRingSpin 12s linear infinite;
}
.page-connexion .auth-shield-ring--2 {
    inset: 12px;
    border-color: rgba(16, 185, 129, 0.25);
    animation-direction: reverse;
    animation-duration: 8s;
}
@keyframes authRingSpin {
    to { transform: rotate(360deg); }
}
.page-connexion .auth-shield-core {
    position: absolute;
    inset: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #4f46e5, #7c3aed);
    color: #fff;
    box-shadow: 0 12px 40px -10px rgba(79, 70, 229, 0.55);
}

.page-connexion .auth-security-hub {
    margin-bottom: 1.5rem;
    padding: 1.15rem;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.03), rgba(99, 102, 241, 0.04));
    border: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.page-connexion .auth-security-hub-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #475569;
    margin-bottom: 1rem;
}
.page-connexion .auth-security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}
.page-connexion .auth-security-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0.7rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.page-connexion .auth-security-item:hover {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 6px 20px -10px rgba(16, 185, 129, 0.2);
}
.page-connexion .auth-security-status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    margin-top: 0.35rem;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: authLivePulse 2.5s ease-out infinite;
}
.page-connexion .auth-security-icon {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}
.page-connexion .auth-security-item strong {
    display: block;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
.page-connexion .auth-security-item span:not(.auth-security-status):not(.auth-security-icon) {
    font-size: 0.625rem;
    color: #64748b;
    line-height: 1.35;
    display: block;
    margin-top: 0.1rem;
}

.page-connexion .auth-cert-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}
.page-connexion .auth-cert {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e2e8f0;
}

.page-connexion .auth-hero-title {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.page-connexion .auth-security-strip {
    margin-bottom: 1.1rem;
    animation: authHeroIn 0.7s var(--auth-ease) 0.08s both;
}
@media (min-width: 1024px) {
    .page-connexion .auth-security-strip { display: none; }
}
.page-connexion .auth-security-strip-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
}
.page-connexion .auth-security-strip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--auth-emerald);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45);
    animation: authLivePulse 2s ease-out infinite;
}
.page-connexion .auth-security-strip-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    padding: 0.2rem 0;
}
.page-connexion .auth-security-strip-scroll::-webkit-scrollbar {
    display: none;
}
.page-connexion .auth-security-strip-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: max-content;
    padding: 0.15rem 0.35rem;
}
.page-connexion .auth-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #047857;
    background: var(--auth-glass-strong);
    border: 1px solid rgba(167, 243, 208, 0.9);
    box-shadow: 0 4px 16px -8px rgba(16, 185, 129, 0.35);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    flex: 0 0 auto;
    transition: transform 0.25s var(--auth-ease), box-shadow 0.25s ease;
}
.page-connexion .auth-strip-icon {
    display: flex;
    color: #059669;
}
.page-connexion .auth-strip-text {
    line-height: 1.2;
}
.page-connexion .auth-card-shell {
    animation: authHeroIn 0.75s var(--auth-ease) 0.12s both;
}

.page-connexion .auth-trust {
    position: relative;
}
.page-connexion .auth-trust::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -8%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12), transparent 70%);
    pointer-events: none;
}

.page-connexion .auth-card {
    position: relative;
    isolation: isolate;
}
.page-connexion .auth-card-glow {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.35), rgba(16, 185, 129, 0.2), rgba(124, 58, 237, 0.35));
    background-size: 200% 200%;
    animation: authBorderGlow 6s ease infinite;
    z-index: -1;
    opacity: 0.55;
    filter: blur(8px);
}
@keyframes authBorderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.page-connexion .auth-card-ribbon,
.page-connexion .auth-modal-ribbon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #047857;
    background: linear-gradient(90deg, rgba(236, 253, 245, 0.95), rgba(209, 250, 229, 0.6), rgba(236, 253, 245, 0.95));
    border-bottom: 1px solid #a7f3d0;
}
.page-connexion .auth-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    animation: authLivePulse 2s ease-out infinite;
}

.page-connexion .auth-lottie-zone {
    position: relative;
}
.page-connexion .auth-lottie-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
    animation: authLottieGlow 3s ease-in-out infinite alternate;
}
@keyframes authLottieGlow {
    from { transform: scale(0.9); opacity: 0.6; }
    to { transform: scale(1.1); opacity: 1; }
}

.page-connexion .auth-form-head {
    margin-bottom: 1.15rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}
.page-connexion .auth-form-sub {
    font-size: 0.8125rem;
    color: var(--auth-muted);
    margin-top: 0.35rem;
    margin-left: 0;
    padding-left: 0;
    line-height: 1.5;
}
@media (min-width: 480px) {
    .page-connexion .auth-form-sub {
        padding-left: 3.15rem;
    }
}

.page-connexion .auth-secure-meter {
    margin-bottom: 1.15rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.85rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: opacity 0.4s ease;
}
.page-connexion .auth-secure-meter.is-ready {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.2);
}
.page-connexion .auth-secure-meter-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.45rem;
}
.page-connexion .auth-secure-meter-label span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.page-connexion #auth-secure-pct {
    font-family: 'Outfit', system-ui, sans-serif;
    color: var(--auth-primary);
    font-variant-numeric: tabular-nums;
}
.page-connexion .auth-secure-meter.is-ready #auth-secure-pct { color: #059669; }
.page-connexion .auth-secure-meter-track {
    height: 5px;
    border-radius: 9999px;
    background: #e2e8f0;
    overflow: hidden;
}
.page-connexion .auth-secure-meter-bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--auth-primary), #10b981);
    transition: width 0.5s var(--auth-ease);
}

.page-connexion .auth-input-wrap {
    position: relative;
}
.page-connexion .auth-input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 2;
    pointer-events: none;
    transition: color 0.25s ease;
}
.page-connexion .field-group.is-focused .auth-input-icon,
.page-connexion .field-group.has-success .auth-input-icon {
    color: var(--auth-primary);
}
.page-connexion .field-group.has-error .auth-input-icon { color: #f87171; }
.page-connexion .input-field.has-icon-l {
    padding-left: 2.65rem !important;
}
.page-connexion .auth-valid-pwd { right: 2.85rem !important; }

.page-connexion .auth-forgot-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.page-connexion .auth-hint-secure {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
}
.page-connexion .auth-forgot-btn {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--auth-primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem 0;
}
.page-connexion .auth-forgot-btn:hover { text-decoration: underline; color: var(--auth-violet); }

.page-connexion .auth-btn {
    position: relative;
    overflow: hidden;
}
.page-connexion .auth-btn-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
    transform: translateX(-120%);
    animation: authBtnShine 4s ease-in-out infinite;
}
@keyframes authBtnShine {
    0%, 80%, 100% { transform: translateX(-120%); }
    40% { transform: translateX(120%); }
}

.page-connexion .auth-session-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
}

.page-connexion .auth-reset-step-dot {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    color: #94a3b8;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    transition: all 0.4s var(--auth-ease);
}
.page-connexion .auth-reset-step-dot.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-violet));
    border-color: transparent;
    box-shadow: 0 4px 14px -4px rgba(79, 70, 229, 0.5);
}
.page-connexion .auth-reset-step-dot.is-done {
    color: #fff;
    background: #10b981;
    border-color: transparent;
}
.page-connexion .auth-reset-step-line {
    width: 3.5rem;
    height: 3px;
    margin-top: 1rem;
    flex-shrink: 0;
    background: #e2e8f0;
    border-radius: 9999px;
    position: relative;
    overflow: hidden;
}
.page-connexion .auth-reset-step-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--auth-primary), #10b981);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--auth-ease);
}
.page-connexion .auth-reset-step-line.is-filled::after {
    transform: scaleX(1);
}

.page-connexion .auth-pwd-strength { margin-top: 0.5rem; }
.page-connexion .auth-pwd-bars {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}
.page-connexion .auth-pwd-bar {
    flex: 1;
    height: 4px;
    border-radius: 9999px;
    background: #e2e8f0;
    transition: background 0.3s ease, transform 0.3s ease;
}
.page-connexion .auth-pwd-bar.is-1 { background: #ef4444; }
.page-connexion .auth-pwd-bar.is-2 { background: #f59e0b; }
.page-connexion .auth-pwd-bar.is-3,
.page-connexion .auth-pwd-bar.is-4 { background: #10b981; }
.page-connexion .auth-pwd-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #64748b;
}

.page-connexion .auth-footer-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ═══ Responsive — tous appareils ═══ */
.page-connexion {
    overflow-x: clip;
    width: 100%;
}
.page-connexion main {
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
}
.page-connexion .auth-layout {
    min-width: 0;
    width: 100%;
}
.page-connexion .auth-main {
    width: 100%;
    max-width: 26rem;
    margin-inline: auto;
    min-width: 0;
}
.page-connexion .auth-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.page-connexion .auth-card form {
    display: flex;
    flex-direction: column;
}
.page-connexion .auth-form-body {
    flex: 1 1 auto;
}

@media (max-width: 639px) {
    .page-connexion main {
        padding-top: 4rem;
    }
    .page-connexion .auth-wrap {
        padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
        padding-top: clamp(1rem, 3vw, 1.5rem);
        padding-bottom: max(2.5rem, calc(env(safe-area-inset-bottom, 0px) + 1.5rem));
    }
    .page-connexion .auth-mesh {
        min-height: auto;
    }
    .page-connexion .auth-hero-mobile {
        margin-bottom: 0.9rem;
    }
    .page-connexion .auth-hero-mobile-inner {
        padding: 1.15rem 1rem 1.1rem;
    }
    .page-connexion .auth-hero-title {
        font-size: clamp(1.5rem, 7vw, 1.85rem);
        line-height: 1.12;
    }
    .page-connexion .auth-hero-tagline {
        font-size: 0.75rem;
    }
    .page-connexion .auth-main {
        max-width: 100%;
    }
    .page-connexion .auth-lottie-zone {
        padding: 0.85rem 1rem;
    }
    .page-connexion #lottie-connexion-step {
        width: 4.25rem;
        height: 4.25rem;
    }
    .page-connexion .auth-lottie-glow {
        width: 90px;
        height: 90px;
    }
    .page-connexion .auth-form-body {
        padding: 1rem 1rem 1.35rem;
    }
    .page-connexion .auth-form-sub {
        margin-left: 0;
        padding-left: 0;
        font-size: 0.75rem;
        line-height: 1.45;
    }
    .page-connexion .auth-panel-title {
        font-size: 1.05rem;
        flex-wrap: wrap;
        gap: 0.45rem;
    }
    .page-connexion .auth-panel-icon {
        width: 2.15rem;
        height: 2.15rem;
        flex-shrink: 0;
    }
    .page-connexion .auth-label {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.2rem 0.35rem;
        font-size: 0.75rem;
    }
    .page-connexion .auth-forgot-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .page-connexion .auth-hint-secure {
        font-size: 0.625rem;
    }
    .page-connexion .auth-forgot-btn {
        align-self: flex-start;
        min-height: 2.25rem;
        padding: 0.35rem 0;
    }
    .page-connexion .auth-card-ribbon {
        font-size: 0.58rem;
        letter-spacing: 0.02em;
        padding: 0.45rem 0.65rem;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 0.3rem;
    }
    .page-connexion .auth-btn {
        margin-top: 1.15rem;
        margin-bottom: 0.25rem;
    }
    .page-connexion .auth-footer-link {
        margin-top: 1.25rem;
        padding: 0 0.35rem 0.5rem;
        font-size: 0.8125rem;
        line-height: 1.5;
    }
    .page-connexion .auth-strip-item {
        font-size: 0.625rem;
        padding: 0.4rem 0.7rem;
    }
}

@media (max-width: 380px) {
    .page-connexion .auth-badge {
        font-size: 0.58rem;
        padding: 0.38rem 0.7rem;
        max-width: 100%;
        justify-content: center;
    }
    .page-connexion .input-field.has-icon-l {
        padding-left: 2.5rem !important;
    }
    .page-connexion .auth-input-icon {
        left: 0.7rem;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .page-connexion .auth-main {
        max-width: 30rem;
    }
    .page-connexion .auth-hero-mobile-inner {
        padding: 1.5rem 1.35rem;
    }
}

@media (min-width: 1024px) {
    .page-connexion .auth-mesh {
        display: flex;
        align-items: center;
        min-height: calc(100dvh - 5.5rem);
    }
    .page-connexion .auth-wrap {
        padding-top: clamp(2rem, 4vw, 3.5rem);
        padding-bottom: clamp(3rem, 6vw, 5rem);
    }
    .page-connexion .auth-main {
        max-width: none;
    }
    .page-connexion .auth-card {
        border-radius: 2rem;
    }
    .page-connexion .auth-lottie-zone {
        padding: 1.35rem 1.5rem 1.25rem;
    }
    .page-connexion #lottie-connexion-step {
        width: 7.5rem;
        height: 7.5rem;
    }
    .page-connexion .auth-form-body {
        padding: 1.75rem 2rem 2rem;
    }
    .page-connexion .auth-btn {
        min-height: 3.25rem;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-connexion .auth-orb,
    .page-connexion .auth-aurora,
    .page-connexion .auth-shield-ring,
    .page-connexion .auth-card-glow,
    .page-connexion .auth-btn-shine,
    .page-connexion .auth-lottie-glow { animation: none; }
    .page-connexion .field-group.is-pulse-error,
    .page-connexion .auth-success-banner,
    .page-connexion .auth-step-panel.is-entering { animation: none; }
}
