/* ═══════════════════════════════════════════════════════════
   Ecocys — shared authentication design system
   POS structure · Seller labels · stable two-column shell
   ═══════════════════════════════════════════════════════════ */

:root {
    --ecocys-brand: #004CC0;
    --ecocys-brand-hover: #003DA3;
    --ecocys-brand-deep: #002B70;
    --ecocys-brand-soft: #EAF2FF;
    --ecocys-ink: #111827;
    --ecocys-muted: #64748B;
    --ecocys-line: #E2E8F0;
    --ecocys-radius: 12px;
    --ecocys-input-h: 56px;
    --ecocys-form-max: 440px;
    --ecocys-space-eyebrow-title: 0.65rem;
    --ecocys-space-title-sub: 0.5rem;
    --ecocys-space-sub-fields: 1.75rem;
    --ecocys-space-field-field: 1rem;
    --ecocys-space-field-action: 0.75rem;
    --ecocys-space-action-cta: 1.5rem;
    --ecocys-space-cta-footer: 1.25rem;
}

/* ── Stable viewport shell (all panels) ─────────────────── */

.auth-split-page--atelier,
.agent-auth-page,
.pos-auth-page {
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

.auth-atelier,
.agent-auth-shell,
.pos-auth-shell {
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

@media (min-width: 992px) {
    .auth-atelier {
        grid-template-rows: minmax(0, 1fr);
    }
}

.auth-atelier-stage,
.agent-auth-stage,
.pos-auth-stage {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    align-self: stretch;
    contain: layout style;
}

.auth-atelier-sheet,
.agent-auth-main,
.pos-auth-main {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ── Left column — independent layout context ───────────── */

.ecocys-auth-left,
.pos-auth-showcase,
.agent-auth-showcase {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.ecocys-auth-left-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
    width: 100%;
    padding: clamp(1.35rem, 2.5vw, 2rem) clamp(1rem, 2.2vw, 2rem) clamp(1rem, 2vw, 1.5rem);
}

.ecocys-auth-left-brand,
.pos-auth-showcase-top,
.agent-auth-showcase-top {
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

.ecocys-auth-left-brand .pos-auth-showcase-logo,
.ecocys-auth-left-brand .agent-auth-showcase-logo,
.pos-auth-showcase-top .pos-auth-showcase-logo,
.agent-auth-showcase-top .agent-auth-showcase-logo {
    margin-bottom: 1.35rem;
}

.ecocys-auth-left-hero,
.pos-auth-showcase-visual,
.agent-auth-showcase-visual {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
    min-height: 0;
    margin: 0.15rem 0 0.35rem;
    padding: 0;
}

.ecocys-auth-left-hero-wrap {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    height: 100%;
    min-height: clamp(280px, 48vh, 580px);
    max-height: 100%;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(0, 76, 192, 0.07);
    background: #f8fafc;
    box-shadow:
        0 2px 4px rgba(0, 43, 112, 0.03),
        0 16px 40px rgba(0, 43, 112, 0.11);
}

.ecocys-auth-left-hero-wrap img,
.pos-auth-showcase-image,
.agent-auth-showcase-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    border: 0;
    box-shadow: none;
}

.pos-auth-showcase-image {
    object-position: center 42%;
}

.agent-auth-showcase-image {
    object-position: center 32%;
}

.ecocys-auth-left-features,
.pos-auth-benefits,
.agent-auth-benefits {
    flex-shrink: 0;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

/* Seller left — same stability rules */
.auth-stage {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

.auth-stage-inner {
    height: 100%;
    min-height: 0;
}

.auth-stage-body {
    flex: 1;
    min-height: 0;
    justify-content: flex-start !important;
    padding-top: clamp(1.5rem, 4vh, 2.5rem) !important;
    padding-bottom: 1.5rem !important;
}

.auth-stage-foot {
    margin-top: auto;
    flex-shrink: 0;
}

/* ── Right column — scroll independently ─────────────────── */

.ecocys-auth-right,
.auth-atelier-body,
.agent-auth-body,
.pos-auth-body {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: clamp(2rem, 6vh, 3.25rem) clamp(1.25rem, 4vw, 2.5rem) 2rem !important;
}

.ecocys-auth-right-inner {
    width: 100%;
    max-width: var(--ecocys-form-max);
    margin-inline: auto;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ecocys-auth-right-inner > .auth-swap-host,
.ecocys-auth-right-inner > .auth-sheet-panel,
.ecocys-auth-right-inner > .ecocys-auth-form-panel {
    width: 100%;
}

.auth-atelier-body:has(#authSwapHost[data-active-panel="register"]),
.auth-atelier-body:has(#authSwapHost[data-active-panel="otp"]),
.auth-atelier-body:has(#authSwapHost[data-active-panel="forgot"]) {
    justify-content: flex-start !important;
}

/* Back navigation — comfortable top spacing */
.auth-sheet-back {
    margin: 0 0 1.35rem;
    padding: 0;
}

.auth-sheet-panel--recovery .auth-sheet-back {
    margin-bottom: 1.5rem;
}

/* Dynamic form area — contents may change, outer shell stays stable */
.ecocys-auth-form-area {
    display: flex;
    flex-direction: column;
    gap: var(--ecocys-space-field-field);
    min-height: 0;
}

.auth-sheet-panel--recovery .ecocys-auth-form-area,
.auth-sheet-panel--recovery [data-forgot-step] {
    gap: var(--ecocys-space-field-field);
}

.auth-sheet-panel--recovery .ecocys-auth-head,
.auth-sheet-panel--recovery .auth-sheet-head {
    margin-bottom: var(--ecocys-space-sub-fields);
}

.auth-alert {
    margin-bottom: 0.75rem;
}

.auth-alert.d-none,
.auth-alert:empty {
    display: none !important;
    margin: 0;
    min-height: 0;
}

/* ── Form container ─────────────────────────────────────── */

.ecocys-auth-form-panel,
.auth-swap-host,
.ecocys-auth-right-inner > .auth-sheet-panel,
.auth-atelier-body .auth-sheet-panel {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
}

.ecocys-auth-form-panel,
.auth-sheet-panel:not(.auth-sheet-panel--register) {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Heading hierarchy (POS reference) ──────────────────── */

.ecocys-auth-head,
.auth-sheet-head {
    margin-bottom: var(--ecocys-space-sub-fields);
    text-align: left;
}

.ecocys-auth-eyebrow,
.auth-sheet-eyebrow {
    color: var(--ecocys-brand);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 var(--ecocys-space-eyebrow-title);
}

.ecocys-auth-title,
.auth-sheet-title {
    font-family: "Manrope", "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--ecocys-ink);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0;
}

.ecocys-auth-subtitle,
.auth-sheet-sub,
.auth-sheet-lede {
    color: var(--ecocys-muted);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    margin: var(--ecocys-space-title-sub) 0 0;
}

/* ── Form stack ─────────────────────────────────────────── */

.ecocys-auth-form,
.auth-sheet-form {
    display: flex;
    flex-direction: column;
    gap: var(--ecocys-space-field-field);
}

.ecocys-auth-form-stack,
.auth-sheet-form-stack {
    display: flex;
    flex-direction: column;
    gap: var(--ecocys-space-field-field);
}

/* ── Field component ────────────────────────────────────── */

.ecocys-auth-field,
.auth-field-block {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0;
}

.ecocys-auth-label,
.auth-field-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ecocys-muted);
    margin: 0;
}

.ecocys-auth-label-row,
.auth-field-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.ecocys-auth-input-shell,
.ecocys-auth-input-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: var(--ecocys-input-h);
    border: 1px solid var(--ecocys-line);
    border-radius: var(--ecocys-radius);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ecocys-auth-field:focus-within .ecocys-auth-input-shell,
.ecocys-auth-field:focus-within .ecocys-auth-input-wrap {
    border-color: var(--ecocys-brand);
    box-shadow: 0 0 0 3px rgba(0, 76, 192, 0.1);
}

/* Seller/admin: keep icon-in-input pattern from auth-atelier */
.auth-split-page--atelier .ecocys-auth-field .auth-field-shell,
.auth-split-page--atelier .ecocys-auth-field .auth-field-password {
    position: relative;
    border: 0;
    box-shadow: none;
    min-height: 0;
}

/* Borderless ONLY inside POS/Agent input shells */
.ecocys-auth-input-shell > .ecocys-auth-input,
.ecocys-auth-input-wrap > .ecocys-auth-input {
    flex: 1;
    width: 100%;
    min-height: calc(var(--ecocys-input-h) - 2px);
    padding: 0 1rem;
    border: 0 !important;
    border-radius: var(--ecocys-radius);
    background: transparent !important;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ecocys-ink) !important;
    box-shadow: none !important;
}

/* Standalone auth inputs — always visible (Seller forgot/OTP/register, etc.) */
.auth-field-input:not(.ecocys-auth-otp-backing):not(.ecocys-auth-otp-cell):not(.ecocys-auth-input),
.form-control.auth-field-input:not(.ecocys-auth-otp-backing):not(.ecocys-auth-otp-cell):not(.ecocys-auth-input) {
    display: block;
    width: 100%;
    min-height: var(--ecocys-input-h);
    padding: 0.85rem 1rem;
    border: 1px solid #D9E2F0 !important;
    border-radius: var(--ecocys-radius);
    background: #fff !important;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ecocys-ink) !important;
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field-input:not(.ecocys-auth-otp-backing):not(.ecocys-auth-otp-cell):not(.ecocys-auth-input):focus,
.form-control.auth-field-input:not(.ecocys-auth-otp-backing):not(.ecocys-auth-otp-cell):not(.ecocys-auth-input):focus {
    outline: none;
    border-color: var(--ecocys-brand) !important;
    box-shadow: 0 0 0 3px rgba(0, 76, 192, 0.12) !important;
    color: var(--ecocys-ink) !important;
}

.auth-field-input:not(.ecocys-auth-otp-backing)::placeholder,
.form-control.auth-field-input:not(.ecocys-auth-otp-backing)::placeholder {
    color: var(--ecocys-muted);
    opacity: 1;
}

.auth-field-input:disabled,
.form-control.auth-field-input:disabled {
    background: #f8fafc !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
}

/* Autofill — keep inputs readable */
.auth-field-input:-webkit-autofill,
.form-control.auth-field-input:-webkit-autofill,
.ecocys-auth-input:-webkit-autofill {
    -webkit-text-fill-color: var(--ecocys-ink) !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    border: 1px solid #D9E2F0 !important;
}

.auth-field-input:-webkit-autofill:focus,
.form-control.auth-field-input:-webkit-autofill:focus {
    box-shadow: 0 0 0 1000px #fff inset, 0 0 0 3px rgba(0, 76, 192, 0.12) !important;
    border-color: var(--ecocys-brand) !important;
}

/* Error state on visible inputs */
.ecocys-auth-field.is-error .auth-field-input:not(.ecocys-auth-otp-backing),
.ecocys-auth-field.is-error .form-control.auth-field-input:not(.ecocys-auth-otp-backing),
.auth-field-block.is-error .auth-field-input:not(.ecocys-auth-otp-backing) {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.ecocys-auth-error {
    color: #dc2626;
    font-size: 0.8125rem;
    line-height: 1.35;
    min-height: 1.125rem;
}

.ecocys-auth-input-shell--icon .ecocys-auth-input,
.auth-field-input--icon {
    padding-left: 2.6rem !important;
    padding-right: 2.6rem !important;
}

.ecocys-auth-input-lead,
.auth-field-lead {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.ecocys-auth-input-trail,
.auth-field-trail {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.ecocys-auth-input-eye,
.auth-field-eye {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #94a3b8;
    padding: 0.35rem;
    z-index: 1;
    cursor: pointer;
}

.ecocys-auth-input-shell--mobile {
    padding-left: 0;
}

.ecocys-auth-prefix {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0 0.85rem 0 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ecocys-ink);
    border-right: 1px solid var(--ecocys-line);
    flex-shrink: 0;
    align-self: stretch;
}

.ecocys-auth-prefix + .ecocys-auth-input,
.ecocys-auth-input-shell--mobile .ecocys-auth-input {
    padding-left: 0.85rem !important;
}

/* Reserved validation/status slot — prevents layout jump */
.ecocys-auth-field-meta,
.auth-field-meta {
    min-height: 1.125rem;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.ecocys-auth-field-meta:empty,
.auth-field-meta:empty {
    min-height: 0;
}

.ecocys-auth-field-meta .text-danger,
.ecocys-auth-field-meta .field-validation-error,
.auth-field-meta .text-danger,
.auth-field-meta .field-validation-error {
    display: block;
    margin: 0;
    color: #dc2626;
}

/* ── Segmented control ──────────────────────────────────── */

.ecocys-auth-seg,
.auth-seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 3px;
    background: #fff;
    border: 1px solid var(--ecocys-line);
    border-radius: var(--ecocys-radius);
    margin-bottom: 0.25rem;
}

.ecocys-auth-seg-item span,
.auth-seg-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ecocys-muted);
    border-radius: calc(var(--ecocys-radius) - 3px);
}

.auth-seg-item:has(input:checked) span,
.ecocys-auth-seg-item:has(input:checked) span {
    background: var(--ecocys-brand-soft);
    color: var(--ecocys-brand);
}

/* ── Actions ────────────────────────────────────────────── */

.ecocys-auth-forgot-row,
.agent-auth-links,
.pos-auth-links {
    display: flex;
    justify-content: flex-end;
    margin-top: calc(var(--ecocys-space-field-action) - var(--ecocys-space-field-field));
    font-size: 0.8125rem;
}

.ecocys-auth-forgot-row a,
.agent-auth-links a,
.pos-auth-links a,
.auth-text-link {
    color: var(--ecocys-brand);
    font-weight: 500;
    text-decoration: none;
}

.ecocys-auth-forgot-row a:hover,
.agent-auth-links a:hover,
.pos-auth-links a:hover {
    text-decoration: underline;
}

.ecocys-auth-primary,
.auth-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 54px;
    margin-top: var(--ecocys-space-action-cta);
    padding: 0.85rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff !important;
    background: var(--ecocys-brand) !important;
    border: 1px solid var(--ecocys-brand) !important;
    border-radius: var(--ecocys-radius);
    box-shadow: 0 8px 20px rgba(0, 76, 192, 0.18);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.ecocys-auth-primary:hover:not(:disabled),
.auth-cta:hover:not(:disabled) {
    background: var(--ecocys-brand-hover) !important;
    border-color: var(--ecocys-brand-hover) !important;
    transform: translateY(-1px);
}

.ecocys-auth-secondary-link,
.auth-otp-link,
.agent-auth-register {
    margin-top: var(--ecocys-space-cta-footer);
    font-size: 0.875rem;
    color: var(--ecocys-muted);
    text-align: center;
}

.ecocys-auth-secondary-link a,
.auth-otp-link,
.agent-auth-register a {
    color: var(--ecocys-brand);
    font-weight: 600;
    text-decoration: none;
}

.ecocys-auth-note,
.auth-secure-note {
    margin-top: var(--ecocys-space-cta-footer);
    font-size: 0.8125rem;
    color: var(--ecocys-muted);
    text-align: center;
    line-height: 1.5;
}

.ecocys-auth-note i,
.auth-secure-note i {
    color: var(--ecocys-brand);
    margin-right: 0.25rem;
}

.ecocys-auth-or,
.auth-or-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: var(--ecocys-space-cta-footer) 0 0;
    color: var(--ecocys-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.ecocys-auth-or::before,
.ecocys-auth-or::after,
.auth-or-line::before,
.auth-or-line::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ecocys-line);
}

.ecocys-auth-hint {
    font-size: 0.8125rem;
    color: var(--ecocys-muted);
    line-height: 1.5;
    margin: 0;
}

/* Seller login — align with POS brand blue */
.auth-split-page--atelier {
    --auth-blue: var(--ecocys-brand);
    --auth-blue-hover: var(--ecocys-brand-hover);
}

.auth-split-page--atelier .auth-cta {
    background: var(--ecocys-brand) !important;
    border-color: var(--ecocys-brand) !important;
}

.auth-split-page--atelier .auth-cta:hover:not(:disabled) {
    background: var(--ecocys-brand-hover) !important;
    border-color: var(--ecocys-brand-hover) !important;
}

/* Disable left KPI hover bounce */
.auth-glass-card:hover {
    transform: none !important;
}

/* ── OTP six-box component ──────────────────────────────── */

.ecocys-auth-otp-backing {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.ecocys-auth-otp {
    position: relative;
    width: 100%;
}

.ecocys-auth-otp-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
}

.ecocys-auth-otp-cell {
    display: block;
    width: 100%;
    min-width: 0;
    height: 54px;
    min-height: 54px;
    padding: 0;
    border: 1px solid #D9E2F0 !important;
    border-radius: 10px;
    background: #fff !important;
    color: var(--ecocys-ink) !important;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.ecocys-auth-otp-cell:focus,
.ecocys-auth-otp-cell.is-active {
    outline: none;
    border-color: var(--ecocys-brand) !important;
    box-shadow: 0 0 0 3px rgba(0, 76, 192, 0.12) !important;
    background: #fff !important;
}

.ecocys-auth-otp-cell.is-filled {
    border-color: #cbd5e1;
}

.ecocys-auth-field.is-error .ecocys-auth-otp-cell,
.auth-field-block.is-error .ecocys-auth-otp-cell {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

/* Legacy single-line OTP class — hide letter-spacing ghost text once enhanced */
.auth-field-input--code.ecocys-auth-otp-backing,
.auth-otp-digit-input.ecocys-auth-otp-backing {
    letter-spacing: normal !important;
}

/* OTP inside inline verify rows (seller registration) */
.auth-otp-inline:has(.ecocys-auth-otp),
.auth-otp-stack:has(.ecocys-auth-otp) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

.auth-otp-inline:has(.ecocys-auth-otp) .auth-soft-btn,
.auth-otp-stack:has(.ecocys-auth-otp) .auth-soft-btn {
    width: 100%;
}

@media (max-width: 575.98px) {
    .ecocys-auth-otp-row {
        gap: 0.35rem;
    }

    .ecocys-auth-otp-cell {
        height: 48px;
        min-height: 48px;
        font-size: 1.125rem;
        border-radius: 8px;
    }
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-height: 720px) and (min-width: 992px) {
    .pos-auth-page .ecocys-auth-left-hero-wrap,
    .agent-auth-page:not(.auth-page-agent-register) .ecocys-auth-left-hero-wrap {
        min-height: clamp(220px, 40vh, 460px);
    }
}

@media (max-width: 991.98px) {
    .auth-split-page--atelier,
    .agent-auth-page,
    .pos-auth-page {
        height: auto;
        max-height: none;
        min-height: 100dvh;
        overflow: auto;
    }

    .auth-atelier,
    .agent-auth-shell,
    .pos-auth-shell {
        height: auto;
        max-height: none;
        min-height: 100dvh;
    }

    .ecocys-auth-left,
    .pos-auth-showcase,
    .agent-auth-showcase,
    .auth-atelier-stage,
    .agent-auth-stage,
    .pos-auth-stage,
    .auth-stage {
        height: auto;
        max-height: none;
    }

    .ecocys-auth-left-inner {
        height: auto;
    }

    .ecocys-auth-left-hero-wrap {
        flex: 0 0 auto;
        height: auto;
        max-height: none;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .ecocys-auth-left-hero-wrap img,
    .pos-auth-showcase-image,
    .agent-auth-showcase-image {
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
    }

    .ecocys-auth-right,
    .auth-atelier-body,
    .agent-auth-body,
    .pos-auth-body {
        padding: 1.25rem clamp(1rem, 4vw, 1.5rem) 2rem !important;
    }
}
