/**
 * Caminho: /assets/css/auth.css
 * Versão: AgendaFlow Auth Slide 13/08/2026
 * Referência visual: card compacto com formulário + painel promocional curvo.
 */

:root {
    --af-blue: #0b56b5;
    --af-blue-2: #2563eb;
    --af-blue-dark: #0b1f49;
    --af-blue-deep: #071936;
    --af-green: #49ad20;
    --af-cyan: #13bde0;
    --af-text: #172033;
    --af-muted: #68778c;
    --af-border: #dde4ee;
    --af-field: #f3f5f8;
    --af-bg: #f3f6fb;
    --af-radius: 24px;
    --af-radius-sm: 9px;
    --af-shadow: 0 24px 60px rgba(28, 41, 74, .18);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body.auth-body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    color: var(--af-text);
    background:
        radial-gradient(circle at 9% 12%, rgba(37, 99, 235, .13), transparent 24rem),
        radial-gradient(circle at 90% 82%, rgba(73, 173, 32, .09), transparent 27rem),
        linear-gradient(135deg, #f8fbff 0%, #f1f4f9 52%, #eef6f2 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-page {
    width: min(100%, 1320px);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: minmax(0, 150px) minmax(0, 940px) minmax(0, 150px);
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.auth-shell { width: 100%; min-width: 0; }

.auth-card {
    position: relative;
    width: 100%;
    min-height: 550px;
    display: grid;
    grid-template-columns: minmax(0, 49%) minmax(0, 51%);
    grid-template-areas: "form promo";
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(203, 213, 225, .85);
    border-radius: var(--af-radius);
    box-shadow: var(--af-shadow);
    isolation: isolate;
    animation: authCardEnter .48s cubic-bezier(.2,.75,.25,1) both;
}

@keyframes authCardEnter {
    from { opacity: 0; transform: translateY(10px) scale(.992); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   FORMULÁRIO
   ============================================================ */
.auth-form-panel {
    grid-area: form;
    position: relative;
    z-index: 2;
    min-width: 0;
    padding: 34px 42px 18px;
    display: flex;
    flex-direction: column;
    background: #fff;
    animation: authFormEnter .48s .08s ease both;
}

@keyframes authFormEnter {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.auth-mobile-brand { display: none; }

.auth-title {
    margin: 0 0 18px;
    text-align: center;
}

.auth-eyebrow {
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--af-blue-2);
    font-size: .64rem;
    line-height: 1;
    font-weight: 850;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.auth-title h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.55rem, 2.2vw, 1.82rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    font-weight: 900;
}

.auth-title p {
    max-width: 390px;
    margin: 7px auto 0;
    color: var(--af-muted);
    font-size: .82rem;
    line-height: 1.46;
}

.auth-form-panel .alert {
    margin: 0 0 11px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: .69rem;
    line-height: 1.35;
}

.auth-form-panel form { min-width: 0; }
.auth-form-panel .mb-3 { margin-bottom: .72rem !important; }
.auth-form-panel .row.g-3 { --cui-gutter-x: .72rem; --cui-gutter-y: .72rem; }

.auth-form-panel .form-label {
    margin-bottom: 4px;
    color: #344054;
    font-size: .68rem;
    font-weight: 780;
}

.auth-form-panel .form-control,
.auth-form-panel .form-select {
    min-height: 40px;
    padding: .48rem .78rem;
    border: 1px solid transparent;
    border-radius: var(--af-radius-sm);
    color: #182132;
    background: var(--af-field);
    font-size: .78rem;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-form-panel .form-control::placeholder { color: #8b97a7; }

.auth-form-panel .form-control:focus,
.auth-form-panel .form-select:focus {
    border-color: #93b4ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

.auth-form-panel .form-text,
.auth-form-panel .text-muted { color: var(--af-muted) !important; }
.auth-form-panel .small { font-size: .68rem !important; }

.auth-form-panel .btn {
    min-height: 40px;
    padding: .48rem .82rem;
    border-radius: var(--af-radius-sm);
    font-size: .72rem;
    font-weight: 830;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.auth-form-panel .btn-primary {
    border-color: var(--af-blue-2);
    background: linear-gradient(135deg, var(--af-blue-2) 0%, #1649ba 100%);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .20);
}

.auth-form-panel .btn-primary:hover {
    border-color: #1649ba;
    background: linear-gradient(135deg, #1d4ed8 0%, #123b99 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, .25);
}

.auth-form-panel .btn-outline-primary {
    color: #1747aa;
    border-color: #bed0f7;
    background: #f7faff;
}

.auth-form-panel .input-group .form-control { min-width: 0; }

.auth-switch {
    margin-bottom: 12px;
    padding: 3px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    border: 1px solid var(--af-border);
    border-radius: 10px;
    background: #f7f9fc;
}
.auth-switch label { margin: 0; cursor: pointer; }
.auth-switch input { position: absolute; opacity: 0; pointer-events: none; }
.auth-switch span {
    min-height: 35px;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #65748a;
    font-size: .69rem;
    font-weight: 800;
    transition: all .18s ease;
}
.auth-switch input:checked + span {
    border-color: #c4d5fb;
    color: #1747aa;
    background: #fff;
    box-shadow: 0 3px 9px rgba(15, 23, 42, .07);
}
.auth-switch input:focus-visible + span { outline: 3px solid rgba(37,99,235,.14); outline-offset: 1px; }

.auth-password-field { position: relative; }
.auth-password-field .form-control { padding-right: 40px; }
.auth-password-toggle {
    position: absolute;
    z-index: 4;
    top: 50%;
    right: 4px;
    width: 31px;
    height: 31px;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 7px;
    color: #75839a;
    background: transparent;
}
.auth-password-toggle:hover { color: #1747aa; background: #eaf1ff; }
.auth-password-toggle:focus-visible { outline: 3px solid rgba(37,99,235,.14); }

.auth-code-input {
    letter-spacing: .18em;
    text-align: center;
    font-size: .90rem !important;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.auth-step-label {
    margin: 0 0 7px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #344054;
    font-size: .69rem;
    font-weight: 820;
}
.auth-step-label span {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--af-blue-2);
    font-size: .59rem;
}

.auth-divider { height: 1px; margin: 12px 0; border: 0; background: var(--af-border); }

.auth-helper {
    margin-top: 7px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: var(--af-muted);
    font-size: .61rem;
    line-height: 1.36;
}
.auth-helper i { margin-top: 1px; color: var(--af-blue-2); }

.auth-links {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
}
.auth-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #344054;
    font-size: .64rem;
    font-weight: 760;
    line-height: 1.2;
    text-decoration: none;
}
.auth-links a:hover { color: #1747aa; }

.auth-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}
.auth-links-grid a {
    min-height: 32px;
    padding: 6px 8px;
    border: 1px solid #e0e6ef;
    border-radius: 7px;
    background: #fff;
}
.auth-links-grid a i { color: var(--af-blue-2); }
.auth-links-grid a:hover { border-color: #c4d5fb; background: #f8fbff; }



/* Turnstile compacto e realmente centralizado */
.auth-turnstile-wrap {
    width: 100%;
    min-width: 0;
    height: 55px;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.auth-turnstile-wrap .cf-turnstile {
    width: 300px;
    min-width: 300px;
    flex: 0 0 300px;
    margin: 0 !important;
    overflow: visible;
    transform: scale(.82);
    transform-origin: top center;
}

/* O iframe inserido pelo Cloudflare permanece centralizado dentro do wrapper. */
.auth-turnstile-wrap .cf-turnstile > div,
.auth-turnstile-wrap .cf-turnstile iframe {
    margin-left: auto !important;
    margin-right: auto !important;
}

.auth-developer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #edf1f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    color: #8a96a8;
    font-size: .53rem;
}
.auth-developer-brand { min-width: 0; display: flex; align-items: center; gap: 5px; }
.auth-developer-brand img { width: 21px; height: 21px; flex: 0 0 21px; object-fit: contain; }
.auth-developer-brand span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.auth-developer > a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #728198;
    text-decoration: none;
    font-weight: 700;
}
.auth-developer > a:hover { color: #1747aa; }

/* ============================================================
   PAINEL PROMOCIONAL PREMIUM — AgendaFlow
   Mantém o recorte curvo e a animação do botão CONHECER.
   ============================================================ */
.auth-promo-panel {
    grid-area: promo;
    position: relative;
    z-index: 3;
    min-width: 0;
    margin-left: -1px;
    padding: 30px 30px 24px 58px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 88% 9%, rgba(73,173,32,.26), transparent 11rem),
        radial-gradient(circle at 18% 93%, rgba(19,189,224,.17), transparent 15rem),
        linear-gradient(148deg, #081d48 0%, #0b3d86 44%, #0b5b9e 72%, #087887 100%);
    border-radius: 112px 0 0 112px;
    box-shadow: inset 1px 0 rgba(255,255,255,.06);
    animation: authPromoEnter .64s cubic-bezier(.2,.8,.25,1) both;
}

@keyframes authPromoEnter {
    from { opacity: 0; transform: translateX(34px); }
    to   { opacity: 1; transform: translateX(0); }
}

.auth-promo-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .13;
    background-image:
        linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(140deg, #000 0%, transparent 73%);
}

.auth-promo-panel::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 110px;
    right: -34px;
    top: 112px;
    pointer-events: none;
    opacity: .28;
    border: 1px solid rgba(139,233,251,.20);
    border-radius: 18px;
    background:
        linear-gradient(90deg, transparent 9%, rgba(139,233,251,.16) 9% 10%, transparent 10% 32%, rgba(139,233,251,.13) 32% 33%, transparent 33%),
        linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
    transform: perspective(300px) rotateY(-9deg);
    box-shadow: 0 16px 36px rgba(0,0,0,.10);
}

.auth-promo-orb,
.auth-promo-wave {
    position: absolute;
    pointer-events: none;
}

.auth-promo-orb { border-radius: 50%; }
.auth-promo-orb--one {
    width: 190px;
    height: 190px;
    right: -94px;
    bottom: -72px;
    background: rgba(73,173,32,.18);
}
.auth-promo-orb--two {
    width: 120px;
    height: 120px;
    left: 24px;
    top: -70px;
    background: rgba(19,189,224,.13);
}

.auth-promo-wave {
    width: 270px;
    height: 110px;
    right: -78px;
    bottom: 76px;
    border: 1px solid rgba(103,232,249,.18);
    border-radius: 50%;
    transform: rotate(-18deg);
}
.auth-promo-wave--two {
    width: 305px;
    height: 132px;
    right: -100px;
    bottom: 50px;
    border-color: rgba(134,239,172,.14);
}

.auth-promo-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
}
.auth-promo-logo {
    width: 49px;
    height: 49px;
    flex: 0 0 49px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(2,18,44,.25);
}
.auth-promo-logo img { width: 42px; height: 42px; object-fit: contain; }
.auth-promo-wordmark { min-width: 0; }
.auth-promo-wordmark strong,
.auth-promo-wordmark small { display: block; }
.auth-promo-wordmark strong {
    font-size: 1.28rem;
    line-height: 1;
    letter-spacing: -.045em;
    font-weight: 900;
}
.auth-promo-wordmark .agenda { color: #d8eaff; }
.auth-promo-wordmark .flow {
    color: #79df44;
    text-shadow: 0 0 18px rgba(121,223,68,.14);
}
.auth-promo-wordmark small {
    margin-top: 4px;
    color: rgba(255,255,255,.66);
    font-size: .55rem;
}

.auth-promo-brand-chip {
    margin-left: auto;
    padding: 5px 7px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(139,233,251,.18);
    border-radius: 999px;
    color: #d9f8ff;
    background: rgba(255,255,255,.07);
    font-size: .48rem;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}
.auth-promo-brand-chip i { color: #86efac; }

.auth-promo-network {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin-top: 12px;
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    overflow: hidden;
    border: 1px solid rgba(191,219,254,.19);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: #dbeafe;
    font-size: .54rem;
    line-height: 1;
    font-weight: 760;
    backdrop-filter: blur(4px);
}
.auth-promo-network span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-promo-copy {
    position: relative;
    z-index: 2;
    margin-top: 14px;
}
.auth-promo-eyebrow {
    color: #9edcf1;
    font-size: .56rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.auth-promo-copy h2 {
    margin: 5px 0 7px;
    color: #fff;
    font-size: 2rem;
    line-height: .98;
    letter-spacing: -.05em;
    font-weight: 950;
}
.auth-promo-copy h2 span {
    color: #79df44;
    text-shadow: 0 6px 22px rgba(73,173,32,.14);
}
.auth-promo-copy p {
    max-width: 340px;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: .76rem;
    line-height: 1.42;
}
.auth-promo-copy p strong {
    color: #a7f3d0;
    font-weight: 850;
}

.auth-promo-signal {
    position: relative;
    z-index: 2;
    margin-top: 10px;
    padding: 5px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 8px;
    border: 1px solid rgba(191,219,254,.18);
    border-radius: 12px;
    background: rgba(3,22,54,.25);
    box-shadow: inset 0 1px rgba(255,255,255,.05);
    backdrop-filter: blur(4px);
}
.auth-promo-signal > div {
    min-width: 0;
    min-height: 42px;
    display: grid;
    grid-template-columns: 30px minmax(0,1fr);
    align-items: center;
    gap: 8px;
}
.auth-promo-signal-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #8be9fb;
    background: rgba(255,255,255,.09);
    font-size: .76rem;
}
.auth-promo-signal b,
.auth-promo-signal small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.auth-promo-signal b {
    color: #fff;
    font-size: .68rem;
    line-height: 1.12;
    font-weight: 850;
}
.auth-promo-signal small {
    margin-top: 3px;
    color: rgba(255,255,255,.62);
    font-size: .53rem;
    line-height: 1.16;
}

.auth-promo-features {
    position: relative;
    z-index: 2;
    margin-top: 15px;
    display: grid;
    gap: 8px;
}
.auth-promo-features > div {
    min-width: 0;
    min-height: 52px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 34px minmax(0,1fr);
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(139,233,251,.08);
    border-radius: 10px;
    color: #f4f9ff;
    background: rgba(255,255,255,.038);
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.auth-promo-features > div:hover {
    transform: translateX(2px);
    border-color: rgba(139,233,251,.20);
    background: rgba(255,255,255,.07);
}
.auth-promo-features > div > i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(139,233,251,.22);
    border-radius: 9px;
    color: #8be9fb;
    background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
    font-size: .86rem;
}
.auth-promo-features b,
.auth-promo-features small {
    display: block;
}
.auth-promo-features b {
    color: #f8fbff;
    font-size: .72rem;
    line-height: 1.18;
    font-weight: 850;
}
.auth-promo-features small {
    margin-top: 3px;
    color: rgba(255,255,255,.64);
    font-size: .58rem;
    line-height: 1.28;
}

.auth-promo-cta {
    position: relative;
    z-index: 2;
    width: min(100%, 300px);
    min-height: 40px;
    margin: 5px auto 0;
    padding: 0 14px;
    display: grid;
    grid-template-columns: 20px minmax(0,1fr) 20px;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    border: 1px solid rgba(129,230,217,.52);
    border-radius: 9px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(37,99,235,.48), rgba(13,148,136,.40)),
        rgba(255,255,255,.04);
    box-shadow:
        0 10px 24px rgba(2,18,44,.22),
        0 0 0 1px rgba(96,165,250,.07) inset;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.auth-promo-cta::before {
    content: "";
    position: absolute;
    width: 85px;
    height: 170%;
    top: -35%;
    left: -110px;
    transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.23), transparent);
    animation: authCtaShine 3.8s ease-in-out infinite;
}
@keyframes authCtaShine {
    0%, 58% { left: -110px; }
    78%, 100% { left: calc(100% + 80px); }
}
.auth-promo-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    border-color: rgba(167,243,208,.82);
    box-shadow:
        0 15px 32px rgba(2,18,44,.27),
        0 0 25px rgba(19,189,224,.12);
}
.auth-promo-cta > i { position: relative; z-index: 1; }
.auth-promo-cta > i:first-child { color: #b8f4ff; }
.auth-promo-cta-arrow {
    justify-self: end;
    color: #dff9ff;
}
.auth-promo-cta--disabled { pointer-events: none; opacity: .72; }
.auth-promo-cta-label {
    position: relative;
    z-index: 1;
    min-width: 112px;
    display: flex;
    justify-content: center;
    overflow: visible;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ANIMAÇÃO ORIGINAL DO BOTÃO CONHECER — preservada */
.auth-promo-cta-label .typing {
    display: inline-block;
    width: 0;
    max-width: 11ch;
    overflow: hidden;
    white-space: nowrap;
    padding-right: 2px;
    border-right: 2px solid rgba(255,255,255,.95);
    animation: authTyping 3.4s steps(8, end) infinite, authCaret .76s step-end infinite;
}
@keyframes authTyping {
    0%, 12% { width: 0; }
    34%, 76% { width: 10.2ch; }
    92%, 100% { width: 0; }
}
@keyframes authCaret { 50% { border-color: transparent; } }

.auth-promo-tagline {
    position: relative;
    z-index: 2;
    width: min(100%, 300px);
    margin-top: 6px;
    color: rgba(255,255,255,.58);
    text-align: center;
    font-size: .47rem;
    line-height: 1.2;
    letter-spacing: .01em;
}

.auth-promo-security {
    position: relative;
    z-index: 2;
    margin-top: 7px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.60);
    font-size: .51rem;
    line-height: 1.2;
}
.auth-promo-security i { color: #86efac; }

/* ============================================================
   PUBLICIDADE EXTERNA OPCIONAL
   ============================================================ */
.auth-ad {
    width: 100%;
    max-width: 150px;
    position: sticky;
    top: 18px;
    align-self: center;
}
.auth-ad--empty { visibility: hidden; }
.auth-ad-label {
    margin: 0 0 5px;
    display: block;
    color: #94a3b8;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .48rem;
    font-weight: 800;
}
.auth-ad-link {
    width: 100%;
    aspect-ratio: 3 / 5;
    display: block;
    overflow: hidden;
    border: 1px solid var(--af-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15,23,42,.09);
}
.auth-ad-link img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */
@media (max-width: 1180px) {
    .auth-page { grid-template-columns: minmax(0,940px); padding: 16px; }
    .auth-ad { display: none; }
}

@media (max-width: 820px) {
    .auth-page { padding: 12px; align-items: start; }
    .auth-card {
        max-width: 560px;
        min-height: 0;
        margin: 0 auto;
        grid-template-columns: 1fr;
        grid-template-areas: "form" "promo";
        overflow: hidden;
        border-radius: 18px;
    }

    .auth-form-panel { padding: 24px 24px 18px; }
    .auth-title { text-align: left; margin-bottom: 15px; }
    .auth-eyebrow { justify-content: flex-start; }
    .auth-title p { max-width: none; margin-left: 0; }

    .auth-mobile-brand {
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 9px;
    }
    .auth-mobile-brand img { width: 39px; height: 39px; object-fit: contain; }
    .auth-mobile-brand strong,
    .auth-mobile-brand small { display: block; }
    .auth-mobile-brand strong { font-size: .92rem; line-height: 1; font-weight: 900; }
    .auth-mobile-brand strong .agenda { color: var(--af-blue); }
    .auth-mobile-brand strong .flow { color: var(--af-green); }
    .auth-mobile-brand small {
        max-width: 340px;
        margin-top: 3px;
        overflow: hidden;
        color: #738197;
        font-size: .58rem;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .auth-promo-panel {
        min-height: 150px;
        margin: 0;
        padding: 20px 22px;
        border-radius: 38px 38px 0 0;
        display: grid;
        grid-template-columns: minmax(0,1fr) auto;
        grid-template-areas:
            "brand cta"
            "copy cta"
            "security security";
        align-items: center;
        gap: 9px 14px;
    }
    .auth-promo-brand { grid-area: brand; }
    .auth-promo-logo { width: 42px; height: 42px; flex-basis: 42px; border-radius: 10px; }
    .auth-promo-logo img { width: 35px; height: 35px; }
    .auth-promo-wordmark strong { font-size: 1.02rem; }
    .auth-promo-network,
    .auth-promo-signal,
    .auth-promo-features,
    .auth-promo-brand-chip,
    .auth-promo-tagline { display: none; }
    .auth-promo-copy { grid-area: copy; margin: 0; }
    .auth-promo-eyebrow { display: none; }
    .auth-promo-copy h2 { margin: 0; font-size: 1.14rem; line-height: 1.05; }
    .auth-promo-copy p { display: none; }
    .auth-promo-cta { grid-area: cta; width: 150px; margin: 0; }
    .auth-promo-security { grid-area: security; margin: 0; }
}


@media (max-width: 600px) {

    .auth-turnstile-wrap {
        height: 53px;
    }

    .auth-turnstile-wrap .cf-turnstile {
        transform: scale(.80);
    }

    .auth-card {
        grid-template-areas: "form";
    }

    .auth-promo-panel {
        display: none !important;
    }

    .auth-form-panel {
        min-height: auto;
    }
}

@media (max-width: 520px) {
    .auth-page { padding: 6px; }
    .auth-card { border-radius: 12px; box-shadow: 0 14px 34px rgba(15,23,42,.12); }
    .auth-form-panel { padding: 17px 14px 13px; }
    .auth-mobile-brand { margin-bottom: 11px; }
    .auth-title { margin-bottom: 12px; }
    .auth-title h1 { font-size: 1.34rem; }
    .auth-title p { margin-top: 5px; font-size: .70rem; }
    .auth-form-panel .form-control,
    .auth-form-panel .form-select { min-height: 40px; font-size: 16px; }
    .auth-form-panel .btn { min-height: 40px; }
    .auth-switch span { min-height: 34px; font-size: .68rem; }
    .auth-links-grid { grid-template-columns: 1fr 1fr; gap: 4px; }
    .auth-links-grid a { min-height: 34px; padding: 6px; font-size: .60rem; }
    .auth-code-request .input-group { display: grid; grid-template-columns: 1fr; gap: 6px; }
    .auth-code-request .input-group > .form-control,
    .auth-code-request .input-group > .btn { width: 100%; border-radius: var(--af-radius-sm) !important; }
    .auth-developer { align-items: flex-start; flex-direction: column; gap: 6px; }

    .auth-promo-panel {
        min-height: 132px;
        padding: 17px 15px;
        border-radius: 30px 30px 0 0;
        grid-template-columns: minmax(0,1fr) 128px;
    }
    .auth-promo-copy h2 { font-size: 1rem; }
    .auth-promo-cta { width: 128px; min-height: 39px; padding-inline: 10px; }
    .auth-promo-cta-label { font-size: .67rem; }
    .auth-promo-security { font-size: .51rem; }
}

@media (max-width: 390px) {
    .auth-page { padding: 3px; }
    .auth-form-panel { padding-inline: 11px; }
    .auth-links-grid { grid-template-columns: 1fr; }
    .auth-promo-panel {
        grid-template-columns: 1fr;
        grid-template-areas: "brand" "copy" "cta" "security";
    }
    .auth-promo-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
    .auth-promo-cta-label .typing { width: auto; max-width: none; animation: none; border-right: 0; }
}