/* ==========================================================================
   VendaVol — Identidade visual / tela de autenticação
   Derivada do design system do DeuGain (deugain.com.br):
     base #222 · accent mint #16d8b3 · Space Mono (títulos) · Roboto Mono (UI)
   ========================================================================== */

:root {
    /* --- marca ------------------------------------------------------------ */
    --mint: #16d8b3;
    --mint-deep: #09b090;
    --mint-glow: rgba(22, 216, 179, .35);
    --amber: #f90;
    --danger: #ed4860;

    /* --- superfícies (dark-first, cor de shell do DeuGain) ---------------- */
    --bg: #171717;
    --surface: #222;
    --surface-2: #2a2a2a;
    --surface-3: #333;
    --line: #3a3a3a;
    --line-soft: rgba(255, 255, 255, .07);

    /* --- texto ------------------------------------------------------------ */
    --fg: #f3f3f3;
    --fg-dim: #b5b5b5;
    --fg-mute: #888;

    /* --- tipografia ------------------------------------------------------- */
    --font-title: "Space Mono", ui-monospace, monospace;
    --font-ui: "Roboto Mono", ui-monospace, monospace;

    /* --- forma ------------------------------------------------------------ */
    --r-sm: 5px;
    --r-md: 10px;
    --r-lg: 18px;
    --r-pill: 50px;

    --shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
    --ease: cubic-bezier(.22, .78, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--mint); text-decoration: none; }
a:hover { color: var(--mint-deep); }

:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ==========================================================================
   Layout — split screen (marca | formulário)
   ========================================================================== */

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

/* --- painel de marca ------------------------------------------------------ */

.brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 48px 56px;
    overflow: hidden;
    background: var(--surface);
    isolation: isolate;
}

/* grade técnica + brilho mint ao fundo */
.brand::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(var(--line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 90% 70% at 30% 40%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 30% 40%, #000 30%, transparent 100%);
}

.brand::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 70vmax;
    height: 70vmax;
    left: -22vmax;
    bottom: -34vmax;
    border-radius: 50%;
    background: radial-gradient(circle, var(--mint-glow) 0%, transparent 62%);
    filter: blur(28px);
    animation: drift 22s var(--ease) infinite alternate;
}

@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(9%, -7%, 0) scale(1.14); }
}

.brand__logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--fg);
}

.brand__mark {
    flex: none;
    width: 34px;
    height: 34px;
    color: var(--mint);
}

.brand__logo b { color: var(--mint); font-weight: 700; }

.brand__pitch { max-width: 560px; }

.brand__title {
    margin: 0 0 18px;
    /* em ch para a quebra acompanhar o clamp do font-size */
    max-width: 26ch;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: clamp(26px, 2.7vw, 38px);
    line-height: 1.12;
    letter-spacing: -.01em;
}

.brand__title em {
    font-style: normal;
    color: var(--mint);
    /* sublinhado "de mercado" */
    box-shadow: inset 0 -.18em 0 var(--mint-glow);
}

/* Mantém a frase destacada numa linha só — partida, o sublinhado viraria dois
   segmentos empilhados. Só a partir de 560px, que é onde ela cabe: abaixo
   disso o nowrap faria o texto transbordar a tela. */
@media (min-width: 560px) {
    .brand__title em { white-space: nowrap; }
}

.brand__lead {
    margin: 0;
    max-width: 42ch;
    color: var(--fg-dim);
    font-size: 15px;
    line-height: 1.65;
}

/* faixa de indicadores viva */
.ticker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding: 0;
    list-style: none;
}

.ticker li {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: rgba(0, 0, 0, .25);
    font-size: 12px;
    letter-spacing: .06em;
    color: var(--fg-dim);
}

.ticker b {
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--mint);
}

.ticker .is-down b { color: var(--amber); }

.brand__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-size: 11.5px;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--fg-mute);
}

.brand__foot a { color: var(--fg-mute); }
.brand__foot a:hover { color: var(--mint); }

/* --- painel do formulário ------------------------------------------------- */

.panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: var(--bg);
}

.card {
    width: 100%;
    max-width: 430px;
}

.card__head { margin-bottom: 30px; }

.card__eyebrow {
    display: block;
    margin-bottom: 10px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--mint);
}

.card__title {
    margin: 0 0 8px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 26px;
    line-height: 1.2;
}

.card__sub {
    margin: 0;
    color: var(--fg-dim);
    font-size: 14px;
    line-height: 1.6;
}

/* --- páginas avulsas (confirmar e-mail, redefinir senha) ------------------- */

.standalone {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 48px 24px;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(22, 216, 179, .09), transparent 70%),
        var(--bg);
}

.outcome {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 22px;
    border-radius: 50%;
}

.outcome svg { width: 32px; height: 32px; }

.outcome--ok {
    background: rgba(22, 216, 179, .12);
    color: var(--mint);
    box-shadow: 0 0 0 1px rgba(22, 216, 179, .3);
}

.outcome--erro {
    background: rgba(237, 72, 96, .12);
    color: var(--danger);
    box-shadow: 0 0 0 1px rgba(237, 72, 96, .3);
}

/* ==========================================================================
   Troca de views (entrar / recuperar / cadastrar)
   ========================================================================== */

.view { display: none; }
.view.is-active {
    display: block;
    animation: view-in .34s var(--ease) both;
}

@keyframes view-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Formulários
   ========================================================================== */

.field { margin-bottom: 18px; }

.field__label {
    display: block;
    margin-bottom: 7px;
    padding-left: 4px;
    font-size: 12.5px;
    letter-spacing: .04em;
    color: var(--fg-dim);
}

.field__label .req { color: var(--mint); }

.field__box { position: relative; }

.input,
.select {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--fg);
    font-family: var(--font-ui);
    font-size: 15px;
    transition: border-color .18s, box-shadow .18s, background .18s;
    appearance: none;
}

.input::placeholder { color: #6a6a6a; }

.input:hover:not(:disabled),
.select:hover:not(:disabled) { border-color: #4a4a4a; }

.input:focus,
.select:focus {
    outline: none;
    border-color: var(--mint);
    background: var(--surface-2);
    box-shadow: 0 0 0 4px rgba(22, 216, 179, .13);
}

.input:disabled,
.select:disabled { opacity: .55; cursor: not-allowed; }

/* ícone chevron do select */
.select {
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5b5b5' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 17px;
}

/* estado de erro */
.field.has-error .input,
.field.has-error .select { border-color: var(--danger); }
.field.has-error .input:focus { box-shadow: 0 0 0 4px rgba(237, 72, 96, .15); }

.field__error {
    display: none;
    margin-top: 6px;
    padding-left: 4px;
    color: var(--danger);
    font-size: 12px;
}

.field.has-error .field__error { display: block; }

/* validado */
.field.is-valid .input { border-color: rgba(22, 216, 179, .5); }

/* botão mostrar senha */
.reveal {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--fg-mute);
    cursor: pointer;
    transition: color .18s;
}

.reveal:hover { color: var(--mint); }
.reveal svg { width: 19px; height: 19px; }
.reveal .icon-off { display: none; }
.reveal.is-on .icon-on { display: none; }
.reveal.is-on .icon-off { display: block; }

/* grid de campos (endereço) */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0 14px;
}

.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-12 { grid-column: span 12; }

/* medidor de força da senha */
.strength { margin-top: 9px; }

.strength__bar {
    display: flex;
    gap: 4px;
    height: 4px;
}

.strength__bar span {
    flex: 1;
    border-radius: var(--r-pill);
    background: var(--surface-3);
    transition: background .25s var(--ease);
}

.strength__hint {
    display: block;
    margin-top: 6px;
    padding-left: 4px;
    color: var(--fg-mute);
    font-size: 11.5px;
}

.strength[data-score="1"] .strength__bar span:nth-child(-n+1),
.strength[data-score="2"] .strength__bar span:nth-child(-n+2) { background: var(--danger); }
.strength[data-score="3"] .strength__bar span:nth-child(-n+3) { background: var(--amber); }
.strength[data-score="4"] .strength__bar span                 { background: var(--mint); }

/* linha auxiliar: lembrar-me / esqueci a senha */
.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 4px 0 22px;
    font-size: 13px;
}

/* checkbox custom */
.check {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--fg-dim);
    font-size: 13px;
    line-height: 1.45;
    user-select: none;
}

.check input {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}

.check__box {
    flex: none;
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    margin-top: 1px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    transition: background .16s, border-color .16s;
}

.check__box svg {
    width: 12px;
    height: 12px;
    stroke: var(--surface);
    stroke-width: 3.4;
    opacity: 0;
    transform: scale(.5);
    transition: opacity .16s, transform .16s var(--ease);
}

.check input:checked + .check__box {
    background: var(--mint);
    border-color: var(--mint);
}

.check input:checked + .check__box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 4px rgba(22, 216, 179, .18); }

/* ==========================================================================
   Botões — pill, herdado do DeuGain
   ========================================================================== */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    padding: 0 26px;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--mint);
    color: #10231f;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: center;
    cursor: pointer;
    transition: background .18s, transform .12s var(--ease), box-shadow .18s;
}

.btn:hover:not(:disabled) {
    background: var(--mint-deep);
    box-shadow: 0 10px 26px -10px var(--mint-glow);
}

.btn:active:not(:disabled) { transform: translateY(1px); }

.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn--ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--fg);
}

.btn--ghost:hover:not(:disabled) {
    background: var(--surface);
    border-color: var(--mint);
    color: var(--mint);
    box-shadow: none;
}

/* estado carregando (spinner do DeuGain) */
.btn.is-loading {
    color: transparent;
    pointer-events: none;
}

.btn.is-loading::after {
    content: "";
    position: absolute;
    top: calc(50% - 9px);
    left: calc(50% - 9px);
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(16, 35, 31, .35);
    border-top-color: #10231f;
    border-radius: 50%;
    animation: spin .6s linear infinite;
}

.btn--ghost.is-loading::after {
    border-color: rgba(255, 255, 255, .2);
    border-top-color: var(--mint);
}

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

/* botão Google */
.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--fg);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .18s, border-color .18s;
}

.btn-google:hover { background: var(--surface-2); border-color: #4a4a4a; }
.btn-google svg { flex: none; width: 19px; height: 19px; }

/* separador "ou" */
.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: var(--fg-mute);
    font-size: 11.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* rodapé do card */
.card__foot {
    margin-top: 26px;
    text-align: center;
    color: var(--fg-dim);
    font-size: 13.5px;
}

.link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--mint);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.link-btn:hover { color: var(--mint-deep); text-decoration: underline; }

/* ==========================================================================
   Wizard de cadastro (3 etapas)
   ========================================================================== */

.steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
}

.steps__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fg-mute);
    transition: color .25s;
}

.steps__item::before {
    content: "";
    height: 3px;
    border-radius: var(--r-pill);
    background: var(--surface-3);
    transition: background .3s var(--ease);
}

.steps__item.is-done { color: var(--fg-dim); }
.steps__item.is-done::before { background: var(--mint-deep); }
.steps__item.is-current { color: var(--mint); }
.steps__item.is-current::before { background: var(--mint); }

.step { display: none; }
.step.is-active {
    display: block;
    animation: view-in .3s var(--ease) both;
}

.wizard-nav {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.wizard-nav .btn { width: auto; flex: 1; }
.wizard-nav .btn--ghost { flex: 0 0 auto; padding: 0 22px; }

/* campo de código de 6 dígitos */
.input--code {
    font-family: var(--font-title);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: .42em;
    text-align: center;
    text-indent: .42em; /* compensa o letter-spacing do último dígito */
    padding: 14px 16px;
}

/* checklist da etapa de confirmação */
.checklist {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist__item {
    display: flex;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--fg-dim);
    font-size: 13px;
    line-height: 1.55;
    transition: border-color .25s, background .25s;
}

.checklist__item b { color: var(--fg); font-weight: 700; }

.checklist__dot {
    flex: none;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 2px solid var(--line);
    border-radius: 50%;
    transition: background .25s, border-color .25s;
}

.checklist__dot::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
    transition: background .25s;
}

/* confirmado */
.checklist__item.is-done {
    border-color: rgba(22, 216, 179, .45);
    background: rgba(22, 216, 179, .07);
}

.checklist__item.is-done .checklist__dot {
    background: var(--mint);
    border-color: var(--mint);
}

.checklist__item.is-done .checklist__dot::after {
    background: var(--surface);
}

/* resumo de confirmação */
.summary {
    margin: 0 0 20px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    font-size: 13px;
}

.summary div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 5px 0;
}

.summary dt { color: var(--fg-mute); }
.summary dd {
    margin: 0;
    text-align: right;
    color: var(--fg);
    word-break: break-word;
}

/* dica contextual (ex.: como obter o chat id) */
.hint {
    display: flex;
    gap: 10px;
    margin: -8px 0 18px;
    padding: 12px 14px;
    border-left: 2px solid var(--mint);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    background: rgba(22, 216, 179, .06);
    color: var(--fg-dim);
    font-size: 12.5px;
    line-height: 1.6;
}

.hint svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--mint); }
.hint code {
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(0, 0, 0, .35);
    color: var(--mint);
    font-size: .95em;
}

/* ==========================================================================
   Alertas e toasts
   ========================================================================== */

.alert {
    display: none;
    gap: 10px;
    margin-bottom: 20px;
    padding: 13px 16px;
    border-radius: var(--r-md);
    border-left: 3px solid var(--danger);
    background: rgba(237, 72, 96, .1);
    color: #ffb3bd;
    font-size: 13px;
    line-height: 1.55;
}

.alert.is-visible { display: flex; }

.alert--ok {
    border-left-color: var(--mint);
    background: rgba(22, 216, 179, .1);
    color: #9df0de;
}

.alert svg { flex: none; width: 17px; height: 17px; margin-top: 1px; }

/* ==========================================================================
   Vídeo de boas-vindas — botão no canto + janela centralizada
   ========================================================================== */

.video-fab {
    position: fixed;
    z-index: 40;
    top: 22px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 16px 0 13px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: rgba(34, 34, 34, .82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--fg-dim);
    font-family: var(--font-ui);
    font-size: 12.5px;
    letter-spacing: .04em;
    cursor: pointer;
    transition: color .18s, border-color .18s, background .18s, transform .12s var(--ease);
}

.video-fab svg { width: 19px; height: 19px; color: var(--mint); }

.video-fab:hover {
    color: var(--fg);
    border-color: var(--mint);
    background: var(--surface-2);
    transform: translateY(-1px);
}

/* pulso discreto para o ícone ser notado sem incomodar */
.video-fab::before {
    content: "";
    position: absolute;
    left: 13px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    box-shadow: 0 0 0 0 var(--mint-glow);
    animation: fab-pulse 3.6s ease-out infinite;
    pointer-events: none;
}

@keyframes fab-pulse {
    0%       { box-shadow: 0 0 0 0 rgba(22, 216, 179, .5); }
    35%, 100% { box-shadow: 0 0 0 13px rgba(22, 216, 179, 0); }
}

/* --- janela modal ---------------------------------------------------------- */

.modal[hidden] { display: none; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 24px;
}

.modal__fundo {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, .78);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: fade-in .2s var(--ease) both;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal__janela {
    position: relative;
    width: min(920px, 100%);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: modal-in .28s var(--ease) both;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to   { opacity: 1; transform: none; }
}

.modal__topo {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 14px 14px 20px;
    border-bottom: 1px solid var(--line);
}

.modal__titulo {
    margin: 0;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .04em;
}

.modal__x {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--fg-mute);
    cursor: pointer;
    transition: color .18s, background .18s;
}

.modal__x:hover { color: var(--fg); background: var(--surface-3); }
.modal__x svg { width: 18px; height: 18px; }

/* proporção 16:9 estável, sem depender do conteúdo */
.modal__midia {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.modal__midia iframe,
.modal__midia video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 560px) {
    .video-fab { top: 14px; right: 14px; padding: 0 13px; }
    .video-fab__texto { display: none; }
    .video-fab { padding: 0 11px; }
    .modal { padding: 12px; }
}

.toasts {
    position: fixed;
    z-index: 60;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(360px, calc(100vw - 40px));
}

.toast {
    display: flex;
    gap: 10px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--mint);
    border-radius: var(--r-md);
    background: var(--surface-2);
    box-shadow: var(--shadow);
    color: var(--fg);
    font-size: 13px;
    animation: toast-in .3s var(--ease) both;
}

.toast--error { border-left-color: var(--danger); }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: none; }
}

.toast.is-out { animation: toast-out .25s var(--ease) forwards; }

@keyframes toast-out {
    to { opacity: 0; transform: translateX(20px); }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1023px) {
    .auth { grid-template-columns: 1fr; }

    .brand {
        gap: 26px;
        padding: 34px 28px 40px;
    }

    .brand__title { font-size: clamp(26px, 6.4vw, 34px); }
    .brand__lead { font-size: 14px; }
    .brand__foot { display: none; }
    .ticker { margin-top: 22px; }

    .panel { padding: 36px 24px 56px; }
    .card { max-width: 520px; }
}

@media (max-width: 560px) {
    .brand { padding: 26px 20px 32px; }
    /* aqui a frase destacada quebra em duas linhas — o sublinhado sairia
       partido, então fica só a cor */
    .brand__title em { box-shadow: none; }
    .brand__pitch { max-width: none; }
    .brand__lead { display: none; }
    .ticker li { font-size: 11px; padding: 6px 11px; }

    .panel { padding: 30px 20px 48px; }
    .card__title { font-size: 22px; }

    /* endereço empilha no mobile */
    .grid > [class*="col-"] { grid-column: span 12; }
    .grid > .col-uf, .grid > .col-num { grid-column: span 6; }

    .toasts { right: 12px; left: 12px; bottom: 12px; max-width: none; }
}

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