/* ==========================================================================
   BADICOM — Auth / Login premium
   Desktop + tablet + mobile
   ========================================================================== */

:root {
    --auth-navy-950: #07182c;
    --auth-navy-900: #0a2540;
    --auth-navy-800: #123b60;
    --auth-blue-700: #176aa7;
    --auth-blue-600: #2187c8;
    --auth-blue-500: #359fd9;
    --auth-blue-100: #eaf6fc;
    --auth-ink: #0a2742;
    --auth-text: #49647c;
    --auth-muted: #7990a4;
    --auth-line: #d8e5ee;
    --auth-line-strong: #bfd3e1;
    --auth-surface: #ffffff;
    --auth-surface-soft: #f7fbfd;
    --auth-page: #f3f8fb;
    --auth-success: #22a36a;
    --auth-success-soft: #eaf8f2;
    --auth-danger: #c43b49;
    --auth-danger-soft: #fff2f3;
    --auth-shadow-xl:
        0 34px 80px rgba(16, 53, 82, .12),
        0 10px 28px rgba(18, 61, 94, .08);
    --auth-shadow-lg:
        0 22px 50px rgba(15, 56, 88, .10),
        0 5px 14px rgba(24, 74, 110, .06);
    --auth-radius-xl: 28px;
    --auth-radius-lg: 22px;
    --auth-radius-md: 15px;
    --auth-radius-sm: 11px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--auth-page);
}

body.auth-body {
    margin: 0;
    min-width: 320px;
    min-height: 100dvh;
    overflow-x: hidden;
    color: var(--auth-ink);
    background:
        linear-gradient(
            145deg,
            #f9fcfe 0%,
            #f2f8fb 48%,
            #eef6fa 100%
        );
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

.auth-shell {
    position: relative;
    isolation: isolate;
    width: min(100%, 1720px);
    min-height: 100dvh;
    margin: 0 auto;
    padding:
        max(24px, env(safe-area-inset-top))
        clamp(24px, 4.8vw, 88px)
        max(22px, env(safe-area-inset-bottom));
}

.auth-shell__ambient {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
}

.auth-shell__glow {
    position: absolute;
    display: block;
    border-radius: 999px;
    filter: blur(2px);
}

.auth-shell__glow--one {
    width: 44rem;
    height: 44rem;
    top: -23rem;
    right: -7rem;
    background:
        radial-gradient(
            circle,
            rgba(77, 165, 216, .11) 0%,
            rgba(77, 165, 216, 0) 70%
        );
}

.auth-shell__glow--two {
    width: 36rem;
    height: 36rem;
    left: -18rem;
    bottom: -18rem;
    background:
        radial-gradient(
            circle,
            rgba(40, 126, 183, .08) 0%,
            rgba(40, 126, 183, 0) 72%
        );
}

.auth-shell__grid {
    position: absolute;
    inset: 0;
    opacity: .33;
    background-image:
        linear-gradient(
            rgba(76, 126, 160, .045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(76, 126, 160, .045) 1px,
            transparent 1px
        );
    background-size: 68px 68px;
    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, .18),
            rgba(0, 0, 0, .58) 36%,
            rgba(0, 0, 0, .22)
        );
}

.auth-header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 70px;
    margin-bottom: clamp(18px, 2.6vh, 34px);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.auth-brand__mark {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: #fff;
    background:
        linear-gradient(
            145deg,
            #0a3a63,
            #0a2d50 72%
        );
    box-shadow:
        0 12px 30px rgba(8, 46, 78, .18),
        inset 0 1px 0 rgba(255, 255, 255, .14);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .05em;
}

.auth-brand__identity {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.auth-brand__name {
    color: var(--auth-navy-900);
    font-size: 24px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: .025em;
}

.auth-brand__subtitle {
    color: #5d7890;
    font-size: 10.5px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .105em;
    text-transform: uppercase;
}

.auth-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 9px 14px;
    border: 1px solid rgba(191, 211, 225, .85);
    border-radius: 999px;
    color: var(--auth-navy-800);
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 8px 22px rgba(36, 90, 127, .06);
    backdrop-filter: blur(14px);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-secure-badge__icon {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: var(--auth-success);
}

.auth-secure-badge__icon svg {
    width: 100%;
    height: 100%;
}

.auth-stage {
    position: relative;
    display: grid;
    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(410px, .78fr);
    gap: clamp(34px, 4.2vw, 74px);
    align-items: center;
    min-height: calc(100dvh - 182px);
}

.auth-hero {
    position: relative;
    min-width: 0;
    min-height: 690px;
    padding:
        clamp(28px, 4vh, 48px)
        clamp(18px, 2.6vw, 40px)
        230px
        0;
}

.auth-hero::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 6% 5% 20% 10%;
    border-radius: 999px;
    background:
        radial-gradient(
            ellipse at center,
            rgba(112, 182, 223, .16),
            rgba(112, 182, 223, 0) 68%
        );
    filter: blur(18px);
}

.auth-hero__content {
    position: relative;
    z-index: 3;
    max-width: 780px;
}

.auth-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: #2c77aa;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.3;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.auth-hero__eyebrow > span {
    width: 30px;
    height: 1px;
    background: currentColor;
}

.auth-hero__title {
    margin: 0;
    max-width: 800px;
    color: var(--auth-navy-900);
    font-size: clamp(44px, 4.15vw, 72px);
    font-weight: 860;
    line-height: .98;
    letter-spacing: -.045em;
}

.auth-hero__title span {
    display: inline-block;
    color: #278ac7;
}

.auth-hero__description {
    max-width: 650px;
    margin: 28px 0 0;
    color: var(--auth-text);
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.65;
}

.auth-capabilities {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    max-width: 760px;
    margin-top: 34px;
}

.auth-capability {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding-right: 14px;
}

.auth-capability + .auth-capability {
    padding-left: 18px;
    border-left: 1px solid rgba(190, 211, 225, .72);
}

.auth-capability__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #167abd;
}

.auth-capability__icon svg {
    width: 27px;
    height: 27px;
}

.auth-capability > span:last-child {
    min-width: 0;
}

.auth-capability strong,
.auth-capability small {
    display: block;
}

.auth-capability strong {
    color: var(--auth-navy-900);
    font-size: 12px;
    line-height: 1.25;
    font-weight: 800;
}

.auth-capability small {
    margin-top: 2px;
    overflow: hidden;
    color: #7790a5;
    font-size: 10px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-flow-card {
    position: absolute;
    z-index: 4;
    left: 0;
    right: clamp(16px, 4vw, 72px);
    bottom: 48px;
    padding: 17px 19px 16px;
    border: 1px solid rgba(206, 221, 232, .86);
    border-radius: 20px;
    background: rgba(255, 255, 255, .82);
    box-shadow:
        0 16px 36px rgba(28, 78, 112, .07),
        inset 0 1px 0 rgba(255, 255, 255, .84);
    backdrop-filter: blur(15px);
}

.auth-flow-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #496982;
    font-size: 9.5px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.auth-flow-card__header span:last-child {
    color: #1a79b9;
}

.auth-route {
    margin-top: 6px;
}

.auth-route__svg {
    display: block;
    width: 100%;
    height: 90px;
    overflow: visible;
}

.auth-route__track,
.auth-route__progress {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.auth-route__track {
    stroke: #b9cfdc;
}

.auth-route__progress {
    stroke: #2b91cf;
    stroke-dasharray: 8 8;
    animation: route-flow 14s linear infinite;
}

.auth-route circle {
    fill: #fff;
    stroke: #2c8fcc;
    stroke-width: 2;
}

.auth-route .auth-route__arrival-halo {
    fill: rgba(35, 164, 108, .15);
    stroke: none;
}

.auth-route .auth-route__arrival {
    fill: #28a56f;
    stroke: #15784f;
    filter: drop-shadow(0 4px 8px rgba(33, 157, 105, .25));
}

.auth-route__labels {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: -7px;
    color: #5c758b;
    font-size: 9.5px;
    line-height: 1.2;
}

.auth-route__labels span:nth-child(2),
.auth-route__labels span:nth-child(3),
.auth-route__labels span:nth-child(4) {
    text-align: center;
}

.auth-route__labels span:last-child {
    color: #319a69;
    text-align: right;
}

.auth-port-scene {
    position: absolute;
    z-index: 1;
    right: -3%;
    bottom: 0;
    left: -5%;
    height: 255px;
    overflow: hidden;
    opacity: .84;
    pointer-events: none;
    mask-image:
        linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, .28) 18%,
            rgba(0, 0, 0, .86) 42%,
            #000 100%
        );
}

.auth-port-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(243, 248, 251, .48),
            rgba(243, 248, 251, .05) 45%,
            rgba(243, 248, 251, .3)
        );
}

.auth-port-scene svg {
    width: 100%;
    height: 100%;
}

.auth-console {
    position: relative;
    z-index: 6;
    overflow: hidden;
    width: min(100%, 500px);
    margin-left: auto;
    border: 1px solid rgba(202, 218, 229, .9);
    border-radius: var(--auth-radius-xl);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--auth-shadow-xl);
    backdrop-filter: blur(18px);
}

.auth-console::before {
    content: "";
    position: absolute;
    top: 0;
    left: 30px;
    width: 58px;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background:
        linear-gradient(
            90deg,
            #1f85c2,
            #2aa4d8
        );
}

.auth-console__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 82px;
    padding: 22px 28px 19px;
    border-bottom: 1px solid #e2ebf1;
    background:
        linear-gradient(
            180deg,
            rgba(250, 253, 255, .98),
            rgba(248, 251, 253, .93)
        );
}

.auth-console__kicker,
.auth-console__code {
    display: block;
}

.auth-console__kicker {
    color: #0e5c91;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.auth-console__code {
    margin-top: 5px;
    color: #8aa0b1;
    font-size: 8.5px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.auth-console__secure {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #13714e;
    background: #eef9f5;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.auth-console__secure svg {
    width: 15px;
    height: 15px;
    color: #1fa86b;
}

.auth-console__body {
    padding: 34px 30px 26px;
}

.auth-console__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 51px;
    padding: 13px 20px;
    border-top: 1px solid #e3ebf1;
    color: #71899d;
    background: #f8fbfd;
    font-size: 8.5px;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.auth-console__footer span {
    display: inline-flex;
    align-items: center;
}

.auth-console__footer span + span::before {
    content: "•";
    margin: 0 9px;
    color: #9fb2c1;
}

.login-panel__header {
    margin-bottom: 25px;
}

.login-panel__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #1680bd;
    font-size: 9.5px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.login-panel__title {
    margin: 0;
    color: var(--auth-navy-900);
    font-size: clamp(26px, 2vw, 34px);
    line-height: 1.08;
    font-weight: 850;
    letter-spacing: -.025em;
}

.login-panel__description {
    margin: 10px 0 0;
    color: #71889c;
    font-size: 13px;
    line-height: 1.5;
}

.login-alert {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: -4px 0 20px;
    padding: 12px 13px;
    border: 1px solid transparent;
    border-radius: 12px;
}

.login-alert--error {
    color: #8f2431;
    border-color: #f0c5cb;
    background: var(--auth-danger-soft);
}

.login-alert__icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
}

.login-alert__icon svg {
    width: 20px;
    height: 20px;
}

.login-alert strong,
.login-alert span {
    display: block;
}

.login-alert strong {
    font-size: 11px;
    line-height: 1.25;
}

.login-alert div > span {
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.4;
}

.login-form {
    display: grid;
    gap: 18px;
}

.login-field {
    display: grid;
    gap: 8px;
}

.login-field__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.login-field__header label {
    color: var(--auth-navy-900);
    font-size: 11.5px;
    line-height: 1.2;
    font-weight: 800;
}

.login-field__header span {
    color: #8ba1b2;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    font-size: 8px;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.login-field__control {
    position: relative;
    display: flex;
    align-items: center;
}

.login-field__icon {
    position: absolute;
    z-index: 2;
    left: 14px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: #4e91be;
    pointer-events: none;
}

.login-field__icon svg {
    width: 18px;
    height: 18px;
}

.login-field__control input {
    display: block;
    width: 100%;
    height: 50px;
    padding:
        0
        46px
        0
        45px;
    border: 1px solid var(--auth-line-strong);
    outline: none;
    border-radius: 11px;
    color: var(--auth-navy-900);
    background: #fff;
    box-shadow:
        inset 0 1px 2px rgba(17, 51, 77, .025);
    font-size: 13px;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

.login-field__control input::placeholder {
    color: #9cb0c0;
}

.login-field__control input:hover {
    border-color: #a9c8dc;
}

.login-field__control input:focus {
    border-color: #2388c7;
    background: #fff;
    box-shadow:
        0 0 0 3px rgba(38, 145, 207, .11),
        0 7px 18px rgba(26, 102, 150, .06);
}

.login-field__toggle {
    position: absolute;
    z-index: 4;
    top: 50%;
    right: 8px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: #66869e;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        color .18s ease,
        background-color .18s ease;
}

.login-field__toggle:hover {
    color: #177ebc;
    background: #edf7fc;
}

.login-field__toggle:focus-visible {
    outline: 2px solid #3a98d0;
    outline-offset: 1px;
}

.login-field__toggle span {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
}

.login-field__toggle svg {
    width: 19px;
    height: 19px;
}

.login-form__error-hint {
    margin: -8px 0 -3px;
    color: #a02f3d;
    font-size: 10px;
    line-height: 1.4;
}

.login-form__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: -2px;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #60788d;
    font-size: 10.5px;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
}

.login-remember input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.login-remember__box {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    border: 1px solid #aac0d0;
    border-radius: 5px;
    color: #fff;
    background: #fff;
    transition:
        border-color .18s ease,
        background-color .18s ease,
        box-shadow .18s ease;
}

.login-remember__box svg {
    width: 12px;
    height: 12px;
    opacity: 0;
    transform: scale(.65);
    transition:
        opacity .18s ease,
        transform .18s ease;
}

.login-remember input:checked + .login-remember__box {
    border-color: #2388c7;
    background: #2388c7;
}

.login-remember input:checked + .login-remember__box svg {
    opacity: 1;
    transform: scale(1);
}

.login-remember input:focus-visible + .login-remember__box {
    box-shadow: 0 0 0 3px rgba(38, 145, 207, .14);
}

.login-help {
    color: #7f98ab;
    font-size: 10px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: default;
}

.login-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 55px;
    margin-top: 1px;
    padding: 7px 8px 7px 18px;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #145f93,
            #197db8 58%,
            #178bc5
        );
    box-shadow:
        0 14px 28px rgba(22, 106, 160, .20),
        inset 0 1px 0 rgba(255, 255, 255, .15);
    cursor: pointer;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease;
}

.login-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            110deg,
            transparent 0%,
            rgba(255, 255, 255, .11) 38%,
            transparent 60%
        );
    transform: translateX(-115%);
    transition: transform .55s ease;
}

.login-submit:hover {
    box-shadow:
        0 17px 34px rgba(22, 106, 160, .25),
        inset 0 1px 0 rgba(255, 255, 255, .16);
    transform: translateY(-1px);
}

.login-submit:hover::before {
    transform: translateX(115%);
}

.login-submit:active {
    transform: translateY(0);
}

.login-submit:focus-visible {
    outline: 3px solid rgba(48, 157, 217, .3);
    outline-offset: 3px;
}

.login-submit:disabled {
    cursor: wait;
    filter: saturate(.82);
    opacity: .9;
}

.login-submit__label {
    position: relative;
    z-index: 2;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
}

.login-submit__arrow {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
}

.login-submit__arrow svg {
    width: 18px;
    height: 18px;
}

.login-submit__loader {
    position: absolute;
    z-index: 2;
    right: 19px;
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 999px;
    animation: auth-spin .75s linear infinite;
}

.login-submit.is-loading .login-submit__arrow {
    visibility: hidden;
}

.login-submit.is-loading .login-submit__loader {
    display: block;
}

.login-security {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    margin-top: 18px;
    padding: 13px 14px;
    border: 1px solid #d8e6ef;
    border-radius: 12px;
    background:
        linear-gradient(
            180deg,
            #f8fcfe,
            #f5fafd
        );
}

.login-security__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: #1b9b64;
    background: #e9f8f2;
}

.login-security__icon svg {
    width: 20px;
    height: 20px;
}

.login-security strong,
.login-security span {
    display: block;
}

.login-security strong {
    color: #34566f;
    font-size: 10.5px;
    line-height: 1.25;
    font-weight: 800;
}

.login-security div > span {
    margin-top: 3px;
    color: #8196a8;
    font-size: 9px;
    line-height: 1.35;
}

.auth-footer {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 40px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(199, 216, 228, .72);
    color: #8297a8;
    font-size: 8.5px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@keyframes route-flow {
    to {
        stroke-dashoffset: -160;
    }
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Large desktops
   ========================================================================== */

@media (min-width: 1500px) {
    .auth-stage {
        grid-template-columns:
            minmax(0, 1.35fr)
            minmax(440px, .7fr);
    }

    .auth-console {
        width: min(100%, 520px);
    }

    .auth-console__body {
        padding: 38px 34px 29px;
    }
}

/* ==========================================================================
   Compact desktops / tablets landscape
   ========================================================================== */

@media (max-width: 1180px) {
    .auth-shell {
        padding-inline: 36px;
    }

    .auth-stage {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(390px, .88fr);
        gap: 34px;
    }

    .auth-hero {
        min-height: 650px;
        padding-bottom: 222px;
    }

    .auth-hero__title {
        font-size: clamp(42px, 5vw, 60px);
    }

    .auth-capabilities {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px 0;
        max-width: 520px;
    }

    .auth-capability:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .auth-capability small {
        white-space: normal;
    }

    .auth-flow-card {
        right: 10px;
    }
}

/* ==========================================================================
   Tablet / stacked
   ========================================================================== */

@media (max-width: 980px) {
    .auth-shell {
        padding-inline: 28px;
    }

    .auth-stage {
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: auto;
    }

    .auth-hero {
        min-height: auto;
        padding:
            22px
            0
            170px;
    }

    .auth-hero__content {
        max-width: 720px;
    }

    .auth-hero__title {
        font-size: clamp(42px, 7.5vw, 66px);
    }

    .auth-capabilities {
        max-width: 700px;
    }

    .auth-flow-card {
        right: 0;
        bottom: 14px;
    }

    .auth-port-scene {
        height: 185px;
        opacity: .58;
    }

    .auth-console {
        width: min(100%, 620px);
        margin: 0 auto;
    }

    .auth-footer {
        margin-top: 28px;
    }
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 700px) {
    .auth-shell {
        width: 100%;
        padding:
            max(18px, env(safe-area-inset-top))
            16px
            max(18px, env(safe-area-inset-bottom));
    }

    .auth-shell__grid {
        background-size: 48px 48px;
        opacity: .2;
    }

    .auth-header {
        min-height: 56px;
        margin-bottom: 12px;
    }

    .auth-brand {
        gap: 10px;
    }

    .auth-brand__mark {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 14px;
    }

    .auth-brand__name {
        font-size: 18px;
    }

    .auth-brand__subtitle {
        max-width: 210px;
        font-size: 8px;
        line-height: 1.2;
    }

    .auth-secure-badge {
        display: none;
    }

    .auth-stage {
        gap: 14px;
    }

    .auth-hero {
        overflow: hidden;
        min-height: 208px;
        padding:
            18px
            16px
            24px;
        border: 1px solid rgba(205, 220, 230, .72);
        border-radius: 22px;
        background:
            linear-gradient(
                120deg,
                rgba(255, 255, 255, .86),
                rgba(241, 248, 252, .76)
            );
        box-shadow: 0 12px 32px rgba(36, 87, 122, .06);
    }

    .auth-hero::before {
        inset: -40% -20% -20% 20%;
    }

    .auth-hero__content {
        position: relative;
        z-index: 5;
    }

    .auth-hero__eyebrow {
        margin-bottom: 12px;
        font-size: 8px;
    }

    .auth-hero__eyebrow > span {
        width: 22px;
    }

    .auth-hero__title {
        max-width: 360px;
        font-size: clamp(31px, 9.5vw, 42px);
        line-height: 1.01;
    }

    .auth-hero__description,
    .auth-capabilities {
        display: none;
    }

    .auth-flow-card {
        position: absolute;
        z-index: 6;
        left: 16px;
        right: 16px;
        bottom: 14px;
        padding: 10px 12px 9px;
        border-radius: 15px;
        background: rgba(255, 255, 255, .76);
        box-shadow: 0 10px 25px rgba(30, 80, 115, .05);
    }

    .auth-flow-card__header {
        font-size: 7px;
    }

    .auth-route__svg {
        height: 44px;
    }

    .auth-route__labels {
        margin-top: -2px;
        font-size: 6.8px;
    }

    .auth-port-scene {
        z-index: 2;
        right: -18%;
        bottom: 55px;
        left: 18%;
        height: 135px;
        opacity: .36;
        mask-image:
            linear-gradient(
                to bottom,
                transparent,
                #000 34%,
                #000 100%
            );
    }

    .auth-console {
        width: 100%;
        margin: 0;
        border-radius: 22px;
        box-shadow:
            0 18px 44px rgba(13, 58, 91, .10),
            0 4px 14px rgba(13, 58, 91, .05);
    }

    .auth-console::before {
        left: 22px;
        width: 52px;
    }

    .auth-console__top {
        min-height: 70px;
        padding: 19px 20px 16px;
    }

    .auth-console__kicker {
        font-size: 10.5px;
    }

    .auth-console__code {
        font-size: 7.5px;
    }

    .auth-console__secure {
        padding: 6px 8px;
        font-size: 7.5px;
    }

    .auth-console__secure svg {
        width: 13px;
        height: 13px;
    }

    .auth-console__body {
        padding: 26px 20px 22px;
    }

    .login-panel__header {
        margin-bottom: 22px;
    }

    .login-panel__eyebrow {
        margin-bottom: 9px;
        font-size: 8.5px;
    }

    .login-panel__title {
        font-size: 29px;
    }

    .login-panel__description {
        font-size: 11.5px;
    }

    .login-form {
        gap: 16px;
    }

    .login-field__header label {
        font-size: 10.5px;
    }

    .login-field__header span {
        font-size: 7px;
    }

    .login-field__control input {
        height: 52px;
        font-size: 12px;
    }

    .login-form__options {
        gap: 10px;
    }

    .login-remember {
        font-size: 9.5px;
    }

    .login-help {
        font-size: 9px;
    }

    .login-submit {
        min-height: 54px;
    }

    .login-security {
        margin-top: 16px;
    }

    .auth-console__footer {
        min-height: 48px;
        padding-inline: 12px;
        font-size: 7px;
        letter-spacing: .035em;
    }

    .auth-console__footer span + span::before {
        margin-inline: 6px;
    }

    .auth-footer {
        display: none;
    }
}

/* ==========================================================================
   Very small mobile
   ========================================================================== */

@media (max-width: 390px) {
    .auth-shell {
        padding-inline: 12px;
    }

    .auth-brand__subtitle {
        max-width: 150px;
    }

    .auth-hero {
        min-height: 196px;
        padding-inline: 14px;
    }

    .auth-hero__title {
        font-size: 30px;
    }

    .auth-console__top {
        padding-inline: 17px;
    }

    .auth-console__secure span {
        display: none;
    }

    .auth-console__secure {
        width: 32px;
        justify-content: center;
        padding-inline: 0;
    }

    .auth-console__body {
        padding-inline: 17px;
    }

    .login-form__options {
        align-items: flex-start;
        flex-direction: column;
    }

    .login-help {
        padding-left: 25px;
    }
}

/* ==========================================================================
   Short desktop heights
   ========================================================================== */

@media (min-width: 981px) and (max-height: 820px) {
    .auth-shell {
        padding-top: 18px;
        padding-bottom: 16px;
    }

    .auth-header {
        min-height: 58px;
        margin-bottom: 8px;
    }

    .auth-brand__mark {
        width: 46px;
        height: 46px;
    }

    .auth-brand__name {
        font-size: 21px;
    }

    .auth-stage {
        min-height: calc(100dvh - 126px);
    }

    .auth-hero {
        min-height: 610px;
        padding-top: 26px;
        padding-bottom: 205px;
    }

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

    .auth-hero__title {
        font-size: clamp(42px, 3.8vw, 61px);
    }

    .auth-hero__description {
        margin-top: 20px;
        font-size: 15px;
    }

    .auth-capabilities {
        margin-top: 24px;
    }

    .auth-flow-card {
        bottom: 30px;
    }

    .auth-port-scene {
        height: 220px;
    }

    .auth-console__top {
        min-height: 70px;
        padding-block: 18px 15px;
    }

    .auth-console__body {
        padding-top: 27px;
        padding-bottom: 21px;
    }

    .login-panel__header {
        margin-bottom: 20px;
    }

    .login-panel__title {
        font-size: 30px;
    }

    .login-form {
        gap: 15px;
    }

    .login-field__control input {
        height: 47px;
    }

    .login-submit {
        min-height: 51px;
    }

    .login-security {
        margin-top: 15px;
        padding-block: 11px;
    }

    .auth-footer {
        display: none;
    }
}

/* ==========================================================================
   Accessibility / reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}


/* ==========================================================================
   BADICOM H8D-B10-ACCOUNTS-D6A-R1 — Official brand asset
   ========================================================================== */

.auth-brand {
    display: inline-flex;
    align-items: center;
    width: min(258px, 31vw);
    min-width: 184px;
    text-decoration: none;
}

.auth-brand__logo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.login-remember--disabled {
    cursor: not-allowed;
    opacity: .58;
}

.login-remember--disabled input {
    cursor: not-allowed;
}

@media (max-width: 700px) {
    .auth-brand {
        width: min(198px, 58vw);
        min-width: 150px;
    }
}

@media (max-width: 390px) {
    .auth-brand {
        width: min(178px, 58vw);
    }
}

/* ==========================================================================\n   BADICOM H8D-B10-ACCOUNTS-D6A-R4 — Premium Logistics Composition\n   ========================================================================== */
.auth-body{min-height:100dvh;color:#092a48;background:linear-gradient(90deg,rgba(248,252,255,.80) 0%,rgba(245,251,255,.68) 50%,rgba(241,249,253,.76) 100%),url("/assets/brand/auth-logistics-desktop.webp") center/cover fixed no-repeat;}
.auth-shell{width:min(100%,1600px);padding:22px clamp(34px,4vw,70px) 18px;}
.auth-shell__ambient{opacity:.22}.auth-shell__grid{opacity:.05}
.auth-header{min-height:62px;margin-bottom:14px}.auth-brand{width:min(248px,25vw);min-width:196px}
.auth-secure-badge{min-height:40px;padding:8px 15px;border-color:rgba(85,132,161,.24);background:rgba(255,255,255,.86);box-shadow:0 10px 28px rgba(44,93,124,.08);color:#123d5c;font-size:9.5px}
.auth-stage{grid-template-columns:minmax(0,1.16fr) minmax(510px,.84fr);gap:clamp(48px,4vw,72px);align-items:center;min-height:calc(100dvh - 145px)}
.auth-hero{min-height:650px;padding:27px 20px 212px 0;background:transparent}.auth-hero::before{opacity:.08}.auth-hero__content{max-width:760px}
.auth-hero__eyebrow{gap:11px;margin-bottom:18px;color:#126ca7;font-size:10px;font-weight:850;letter-spacing:.12em}.auth-hero__eyebrow>span{width:29px}
.auth-hero__title{max-width:730px;margin:0;font-size:clamp(49px,3.35vw,60px);line-height:1.015;font-weight:850;letter-spacing:-.042em}
.auth-hero__title>.auth-hero__line{display:block!important;color:#082b4b!important}.auth-hero__title>.auth-hero__line--accent{color:#288dca!important}
@media(min-width:981px){.auth-hero__title>.auth-hero__line{white-space:nowrap}}
.auth-hero__description{max-width:650px;margin-top:20px;color:#516d83;font-size:15px;line-height:1.58}
.auth-capabilities{max-width:720px;margin-top:27px}.auth-capability{grid-template-columns:33px minmax(0,1fr);gap:9px;padding-right:12px}.auth-capability+.auth-capability{padding-left:15px}.auth-capability__icon{width:33px;height:33px}.auth-capability__icon svg{width:24px;height:24px}.auth-capability strong{color:#0b2d4a;font-size:11.8px}.auth-capability small{color:#5f788d;font-size:9.5px}
.auth-port-scene{display:none!important}
.auth-flow-card{right:clamp(20px,2vw,42px);bottom:24px;padding:16px 19px 15px;border-color:rgba(188,211,226,.82);border-radius:18px;background:rgba(255,255,255,.83);box-shadow:0 18px 40px rgba(34,79,109,.09),inset 0 1px 0 rgba(255,255,255,.92);backdrop-filter:blur(16px)}.auth-flow-card__header{color:#355d79;font-size:9px}.auth-route__svg{height:78px}.auth-route__labels{color:#4d6e85;font-size:8.8px}
.auth-console{width:min(100%,535px);margin-left:auto;border-color:rgba(181,207,224,.9);border-radius:25px;background:rgba(255,255,255,.97);box-shadow:0 30px 74px rgba(20,64,94,.16),0 8px 24px rgba(20,64,94,.075);backdrop-filter:blur(20px);transform:translateY(-6px)}
.auth-console__top{min-height:80px;padding:20px 27px 17px}.auth-console__kicker{font-size:11.5px}.auth-console__code{margin-top:4px;font-size:8.2px}.auth-console__secure{min-height:32px;padding:7px 10px;font-size:8.3px}.auth-console__secure svg{width:14px;height:14px}.auth-console__body{padding:31px 29px 26px}
.login-panel__header{margin-bottom:23px}.login-panel__eyebrow{margin-bottom:9px;font-size:9px}.login-panel__title{font-size:clamp(31px,2.1vw,36px);line-height:1.06}.login-panel__description{max-width:385px;margin-top:9px;color:#61798d;font-size:13px;line-height:1.48}.login-form{gap:16px}.login-field{gap:8px}.login-field__header label{font-size:11px}.login-field__header span{color:#7890a3;font-size:7.4px}.login-field__control input{height:52px;border-color:#b7d2e3;font-size:13px}.login-field__toggle{right:8px;width:36px;height:36px}.login-remember,.login-help{color:#5d788e;font-size:9.4px}.login-submit{min-height:55px;border-radius:12px}.login-submit__label{font-size:11.7px}.login-submit__arrow{width:39px;height:39px}.login-security{grid-template-columns:36px minmax(0,1fr);gap:11px;margin-top:16px;padding:12px 13px}.login-security__icon{width:34px;height:34px}.login-security strong{font-size:9.7px}.login-security div>span{color:#6b8295;font-size:8.5px}
.auth-console__footer{min-height:50px;padding:12px 16px;color:#486a82;font-size:8.8px;font-weight:850;letter-spacing:.035em}.auth-footer{min-height:38px;margin-top:10px;padding-top:11px;color:#496b84;font-size:8.7px;font-weight:820;letter-spacing:.055em}.auth-footer__item{display:inline-flex;align-items:center;gap:6px}.auth-footer__item--developer{color:#496b84}.auth-footer__link{color:#09689f;font-weight:900;letter-spacing:.10em;text-decoration:none}.auth-footer__link:hover,.auth-footer__link:focus-visible{color:#064f7a;text-decoration:underline}
@media(max-width:1280px) and (min-width:981px){.auth-stage{grid-template-columns:minmax(0,1.05fr) minmax(490px,.95fr);gap:34px}.auth-hero{min-height:610px;padding-bottom:198px}.auth-hero__title{font-size:clamp(45px,3.8vw,53px)}.auth-console{width:min(100%,515px)}}
@media(max-width:980px){.auth-body{background:linear-gradient(180deg,rgba(248,252,255,.86) 0%,rgba(241,249,254,.72) 52%,rgba(236,247,253,.78) 100%),url("/assets/brand/auth-logistics-mobile.webp") center bottom/cover fixed no-repeat}.auth-shell{padding-inline:24px}.auth-stage{grid-template-columns:1fr;gap:18px;min-height:auto}.auth-hero{min-height:auto;padding:18px 18px 16px;border:1px solid rgba(185,210,226,.72);border-radius:22px;background:rgba(250,253,255,.78);box-shadow:0 16px 38px rgba(36,81,110,.08);backdrop-filter:blur(14px)}.auth-hero__title{max-width:680px;font-size:clamp(38px,6vw,50px)}.auth-flow-card{position:relative;left:auto;right:auto;bottom:auto;margin-top:15px}.auth-console{width:min(100%,640px);margin-inline:auto;transform:none}}
@media(max-width:700px){.auth-shell{padding:max(14px,env(safe-area-inset-top)) 14px max(18px,env(safe-area-inset-bottom))}.auth-header{min-height:52px;margin-bottom:10px}.auth-brand{width:min(205px,58vw);min-width:150px}.auth-stage{gap:14px}.auth-hero{padding:16px 16px 15px;border-radius:20px;background:rgba(251,253,255,.84)}.auth-hero__eyebrow{margin-bottom:11px;font-size:7.9px}.auth-hero__title{font-size:clamp(29px,7.7vw,35px);line-height:1.04;letter-spacing:-.032em}.auth-hero__title>.auth-hero__line{display:block!important;white-space:nowrap}.auth-hero__description{display:block;margin-top:11px;color:#5b7387;font-size:11.8px;line-height:1.48}.auth-capabilities{display:none}.auth-flow-card{margin-top:14px;padding:10px 12px 9px;border-radius:14px}.auth-flow-card__header{font-size:6.9px}.auth-route__svg{height:41px}.auth-route__labels{margin-top:-1px;font-size:6.5px}.auth-console{width:100%;border-radius:22px;box-shadow:0 21px 48px rgba(18,62,91,.13),0 5px 16px rgba(18,62,91,.06)}.auth-console::before{left:20px;width:48px}.auth-console__top{min-height:68px;padding:17px 18px 15px}.auth-console__kicker{font-size:10px}.auth-console__code{font-size:7px}.auth-console__secure{min-height:29px;padding:5px 8px;font-size:7px}.auth-console__body{padding:25px 18px 21px}.login-panel__header{margin-bottom:20px}.login-panel__eyebrow{font-size:8px}.login-panel__title{font-size:29px}.login-panel__description{font-size:12px}.login-field__header label{font-size:10.3px}.login-field__header span{font-size:6.5px}.login-field__control input{height:51px;font-size:12px}.login-remember,.login-help{font-size:8.7px}.login-submit{min-height:52px}.auth-console__footer{flex-wrap:wrap;min-height:auto;padding:12px 10px;color:#45667e;font-size:8.6px;line-height:1.5}.auth-footer{display:grid;gap:7px;justify-items:center;margin-top:12px;padding-top:12px;color:#496b83;font-size:8.8px;line-height:1.5;text-align:center}.auth-footer__item{justify-content:center;flex-wrap:wrap}.auth-footer__link{font-size:9.3px}}
@media(max-width:390px){.auth-shell{padding-inline:11px}.auth-brand{width:min(182px,60vw)}.auth-hero{padding-inline:14px}.auth-hero__title{font-size:27px}.auth-hero__description{font-size:10.9px}.auth-console__top,.auth-console__body{padding-left:15px;padding-right:15px}.login-panel__title{font-size:27px}.login-form__options{align-items:center;flex-direction:row}.login-help{padding-left:0}.auth-console__footer{font-size:7.8px}.auth-footer{font-size:8.3px}}
@media(max-width:340px){.auth-hero__title{font-size:24px}.auth-console__secure span{display:none}.auth-console__secure{width:30px;justify-content:center;padding-inline:0}}
@media(min-width:981px) and (max-height:820px){.auth-shell{padding-top:14px;padding-bottom:12px}.auth-header{min-height:52px;margin-bottom:5px}.auth-brand{width:220px}.auth-stage{min-height:calc(100dvh - 105px)}.auth-hero{min-height:560px;padding-top:15px;padding-bottom:183px}.auth-hero__title{font-size:clamp(42px,3vw,50px)}.auth-hero__description{margin-top:16px;font-size:13px}.auth-capabilities{margin-top:21px}.auth-flow-card{bottom:18px}.auth-console{width:min(100%,500px);transform:none}.auth-console__top{min-height:65px;padding-top:15px;padding-bottom:13px}.auth-console__body{padding-top:22px;padding-bottom:18px}.login-panel__header{margin-bottom:17px}.login-panel__title{font-size:30px}.login-form{gap:13px}.login-field__control input{height:46px}.login-submit{min-height:49px}.login-security{margin-top:12px;padding-top:9px;padding-bottom:9px}.auth-footer{margin-top:6px}}

/* ==========================================================================
   BADICOM H8D-B10-ACCOUNTS-D6A-R5-R1 — Final UX Polish
   ========================================================================== */


/* --------------------------------------------------------------------------
   Footer général : centré, FREETIME toujours en dernière ligne
   -------------------------------------------------------------------------- */

.auth-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;

    gap: 4px;

    margin-top: 12px;

    padding:
        12px
        12px
        2px;

    color: #45677f;

    font-size: 8.8px;
    font-weight: 820;

    line-height: 1.5;

    letter-spacing: .05em;

    text-align: center;
}


.auth-footer__item {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    text-align: center;
}


.auth-footer__item:not(
    .auth-footer__item--developer
):not(
    .auth-footer__item--tagline
) {
    order: 1;
}


.auth-footer__item--tagline {
    order: 2;
}


.auth-footer__item--developer {
    order: 3;

    margin-top: 2px;

    color: #355d78;

    font-weight: 850;
}


.auth-footer__link {
    color: #0871aa;

    font-weight: 900;

    letter-spacing: .10em;
}


/* ==========================================================================
   DESKTOP
   ========================================================================== */

@media (min-width: 981px) {

    /*
     * Davantage d'espace pour le portail sans écraser
     * la partie éditoriale gauche.
     */
    .auth-stage {
        grid-template-columns:
            minmax(0, 1.08fr)
            minmax(565px, .92fr);

        gap:
            clamp(
                38px,
                3.2vw,
                58px
            );
    }


    /*
     * Réduction du grand espace vide entre les capacités
     * et le trajet.
     */
    .auth-hero {
        min-height: 610px;

        padding-bottom: 225px;
    }


    /*
     * Trajet logistique beaucoup plus visible.
     */
    .auth-flow-card {
        left: 0;

        right:
            clamp(
                0px,
                1vw,
                18px
            );

        bottom: 16px;

        padding:
            20px
            24px
            19px;

        border-radius: 21px;

        background:
            rgba(
                255,
                255,
                255,
                .90
            );

        box-shadow:
            0 22px 50px
                rgba(
                    27,
                    73,
                    103,
                    .11
                ),
            inset 0 1px 0
                rgba(
                    255,
                    255,
                    255,
                    .95
                );
    }


    .auth-flow-card__header {
        color: #2e5d7b;

        font-size: 10.5px;
        font-weight: 900;

        letter-spacing: .085em;
    }


    .auth-route {
        margin-top: 8px;
    }


    .auth-route__svg {
        height: 112px;
    }


    .auth-route__track,
    .auth-route__progress {
        stroke-width: 2.35;
    }


    .auth-route circle {
        stroke-width: 2.25;
    }


    .auth-route__labels {
        margin-top: -7px;

        color: #3d647d;

        font-size: 10.5px;
        font-weight: 700;
    }


    /*
     * Portail : légèrement agrandi et plus lisible.
     */
    .auth-console {
        width:
            min(
                100%,
                590px
            );

        border-radius: 26px;

        box-shadow:
            0 35px 86px
                rgba(
                    18,
                    61,
                    90,
                    .17
                ),
            0 8px 26px
                rgba(
                    18,
                    61,
                    90,
                    .08
                );
    }


    .auth-console__top {
        min-height: 85px;

        padding:
            21px
            31px
            18px;
    }


    .auth-console__kicker {
        font-size: 12px;
    }


    .auth-console__code {
        font-size: 8.5px;
    }


    .auth-console__body {
        padding:
            34px
            32px
            29px;
    }


    .login-panel__header {
        margin-bottom: 24px;
    }


    .login-panel__eyebrow {
        font-size: 9.5px;
    }


    .login-panel__title {
        font-size:
            clamp(
                33px,
                2.2vw,
                38px
            );
    }


    .login-panel__description {
        max-width: 420px;

        font-size: 13.5px;
    }


    .login-field__header label {
        font-size: 11.5px;
    }


    .login-field__control input {
        height: 55px;

        font-size: 13.5px;
    }


    .login-submit {
        min-height: 58px;
    }


    .login-submit__label {
        font-size: 12px;
    }


    .login-security strong {
        font-size: 10px;
    }


    .login-security div > span {
        font-size: 8.8px;
    }


    /*
     * Bas de carte centré.
     */
    .auth-console__footer {
        display: flex;

        align-items: center;
        justify-content: center;

        min-height: 53px;

        width: 100%;

        color: #42647c;

        font-size: 9px;
        font-weight: 850;

        text-align: center;
    }

}


/* ==========================================================================
   DESKTOP INTERMEDIAIRE
   ========================================================================== */

@media (
    min-width: 981px
) and (
    max-width: 1280px
) {

    .auth-stage {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(490px, .9fr);

        gap: 30px;
    }


    .auth-console {
        width:
            min(
                100%,
                525px
            );
    }


    .auth-flow-card__header {
        font-size: 9.5px;
    }


    .auth-route__svg {
        height: 96px;
    }


    .auth-route__labels {
        font-size: 9.5px;
    }

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 700px) {

    /*
     * Suppression de toute la partie encerclée :
     *
     * Centre de pilotage
     * Plus loin...
     * Description.
     */
    .auth-hero__content {
        display: none !important;
    }


    /*
     * On transforme le hero en simple conteneur
     * du trajet.
     */
    .auth-hero {
        min-height: 0;

        padding: 0;

        border: 0;

        border-radius: 0;

        background: transparent;

        box-shadow: none;

        backdrop-filter: none;
    }


    .auth-hero::before {
        display: none;
    }


    .auth-flow-card {
        position: relative;

        left: auto;
        right: auto;
        bottom: auto;

        width: 100%;

        margin: 0;

        padding:
            13px
            14px
            12px;

        border-radius: 17px;

        background:
            rgba(
                255,
                255,
                255,
                .92
            );

        box-shadow:
            0 12px 30px
                rgba(
                    24,
                    69,
                    99,
                    .08
                );
    }


    .auth-flow-card__header {
        color: #315e7c;

        font-size: 7.5px;
        font-weight: 900;

        line-height: 1.3;
    }


    .auth-route {
        margin-top: 6px;
    }


    .auth-route__svg {
        height: 58px;
    }


    .auth-route__track,
    .auth-route__progress {
        stroke-width: 2.2;
    }


    .auth-route__labels {
        margin-top: -2px;

        color: #456a82;

        font-size: 7px;
        font-weight: 700;
    }


    /*
     * Portail immédiatement sous le trajet.
     */
    .auth-stage {
        gap: 14px;
    }


    .auth-console {
        margin-top: 0;
    }


    /*
     * Footer interne portail :
     * parfaitement aligné/centré.
     */
    .auth-console__footer {
        display: flex;

        flex-wrap: wrap;

        align-items: center;
        justify-content: center;

        width: 100%;

        gap: 3px 0;

        padding:
            13px
            10px;

        color: #41637c;

        font-size: 8.8px;
        font-weight: 850;

        line-height: 1.55;

        letter-spacing: .02em;

        text-align: center;
    }


    .auth-console__footer span {
        justify-content: center;
    }


    .auth-console__footer span + span::before {
        margin:
            0
            6px;
    }


    /*
     * Footer général :
     * centré et FREETIME dernière ligne.
     */
    .auth-footer {
        gap: 6px;

        margin-top: 12px;

        padding:
            13px
            8px
            3px;

        font-size: 8.8px;
    }


    .auth-footer__link {
        font-size: 9.5px;
    }

}


/* ==========================================================================
   PETITS MOBILES
   ========================================================================== */

@media (max-width: 390px) {

    .auth-flow-card {
        padding-inline: 11px;
    }


    .auth-flow-card__header {
        font-size: 6.9px;
    }


    .auth-route__svg {
        height: 52px;
    }


    .auth-route__labels {
        font-size: 6.5px;
    }


    .auth-console__footer {
        font-size: 8px;
    }


    .auth-footer {
        font-size: 8.2px;
    }


    .auth-footer__link {
        font-size: 9px;
    }

}

/* ==========================================================================
   BADICOM H8D-B10-ACCOUNTS-D6A-R6 — Final Desktop Polish
   ========================================================================== */

@media (min-width: 981px) {

    /* ----------------------------------------------------------------------
       Capacités métier
       ---------------------------------------------------------------------- */

    .auth-capabilities {
        max-width: 760px;

        margin-top: 29px;
    }


    .auth-capability {
        grid-template-columns:
            38px
            minmax(0, 1fr);

        gap: 11px;

        min-height: 48px;

        padding-right: 18px;
    }


    .auth-capability + .auth-capability {
        padding-left: 19px;

        border-left-color:
            rgba(
                157,
                190,
                211,
                .70
            );
    }


    .auth-capability__icon {
        width: 38px;
        height: 38px;

        color: #0f82c7;
    }


    .auth-capability__icon svg {
        width: 27px;
        height: 27px;

        stroke-width: 1.9;
    }


    .auth-capability strong {
        color: #082d4d;

        font-size: 13px;
        font-weight: 850;

        line-height: 1.25;
    }


    .auth-capability small {
        margin-top: 3px;

        color: #526f85;

        font-size: 10.5px;
        font-weight: 600;

        line-height: 1.3;
    }


    /* ----------------------------------------------------------------------
       Footer desktop : une seule ligne
       ---------------------------------------------------------------------- */

    .auth-footer {
        display: flex;

        flex-direction: row;

        flex-wrap: nowrap;

        align-items: center;
        justify-content: center;

        width: 100%;

        gap: 0;

        min-height: 38px;

        margin-top: 10px;

        padding:
            11px
            8px
            2px;

        color: #3e627b;

        font-size:
            clamp(
                8px,
                .58vw,
                9px
            );

        font-weight: 820;

        line-height: 1.35;

        letter-spacing: .045em;

        text-align: center;

        white-space: nowrap;
    }


    .auth-footer__item {
        display: inline-flex;

        align-items: center;
        justify-content: center;

        width: auto;

        flex: 0 0 auto;

        color: #3e627b;

        white-space: nowrap;
    }


    .auth-footer__item--tagline {
        order: 2;
    }


    .auth-footer__item--developer {
        order: 3;

        margin-top: 0;

        color: #315d79;
    }


    .auth-footer__item:not(
        .auth-footer__item--developer
    ):not(
        .auth-footer__item--tagline
    ) {
        order: 1;
    }


    .auth-footer__item + .auth-footer__item::before {
        content: "•";

        display: inline-block;

        margin:
            0
            12px;

        color: #7da1b8;

        font-weight: 900;
    }


    .auth-footer__link {
        color: #0871aa;

        font-size: inherit;

        font-weight: 900;

        letter-spacing: .075em;
    }

}


/* --------------------------------------------------------------------------
   Ajustement desktop intermédiaire
   -------------------------------------------------------------------------- */

@media (
    min-width: 981px
) and (
    max-width: 1280px
) {

    .auth-capabilities {
        max-width: 690px;
    }


    .auth-capability {
        grid-template-columns:
            34px
            minmax(0, 1fr);

        gap: 9px;

        padding-right: 11px;
    }


    .auth-capability + .auth-capability {
        padding-left: 12px;
    }


    .auth-capability__icon {
        width: 34px;
        height: 34px;
    }


    .auth-capability__icon svg {
        width: 24px;
        height: 24px;
    }


    .auth-capability strong {
        font-size: 11.8px;
    }


    .auth-capability small {
        font-size: 9.4px;
    }


    .auth-footer {
        font-size: 7.6px;
    }


    .auth-footer__item + .auth-footer__item::before {
        margin:
            0
            8px;
    }

}

/* ==========================================================================
   BADICOM H8D-B10-ACCOUNTS-D6B-B2-R1 — Password Reset
   ========================================================================== */

.login-help {
    text-decoration: none;
}

.login-help:hover,
.login-help:focus-visible {
    color: #0875b1;
    text-decoration: underline;
}

.login-alert--success {
    border-color: rgba(32, 164, 107, .22);
    background: rgba(234, 250, 242, .96);
    color: #176747;
}

.login-alert--success .login-alert__icon {
    color: #159763;
}

.password-reset-panel {
    width: 100%;
}

.password-reset-panel .login-panel__description {
    max-width: 430px;
}

.password-reset-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 17px;
}

.password-reset-primary-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
}

.password-reset-primary-link:hover,
.password-reset-primary-link:focus-visible {
    text-decoration: none;
}

.password-reset-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    color: #55758c;
    font-size: 9.5px;
    font-weight: 760;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
}

.password-reset-back:hover,
.password-reset-back:focus-visible {
    color: #0874ae;
    text-decoration: underline;
}

@media (max-width: 700px) {

    .password-reset-panel .login-panel__title {
        font-size: 28px;
    }

    .password-reset-panel .login-panel__description {
        font-size: 11.8px;
    }

    .password-reset-back {
        font-size: 9px;
    }

}
