/* ==========================================================================
   LOGIN — HTML/CSS de verdade sobre a referência aprovada.
   Da imagem só vem ARTE: foto do atleta/academia (textos removidos por
   inpainting, laterais estendidas) em assets/img/login-bg.jpg, a assinatura
   caligráfica e as palavras da parede (parte da cena) e o logo S recortado.
   Desktop (>=1024px): palco 1521×1026 com as medidas da referência, ampliado
   por `zoom` (--z). Tamanhos/entrelinhas/`top` calculados com as métricas da
   Public Sans a partir das caixas de tinta medidas na imagem. Cores amostradas.
   Celular (<1024px): coluna única com os mesmos elementos.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body.lg-body {
    min-height: 100vh;
    overflow-x: hidden;
    background: #070809;
    color: #E6E7E8;
    font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}
p, h1, blockquote, ul { margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.lg-sr {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================ CELULAR (base) ============================ */
.lg {
    min-height: 100dvh;
    padding: 20px 18px 28px;
    /* celular: só o atleta (a foto do desktop guarda o card desenhado, que apareceria atrás do card real) */
    background:
        linear-gradient(180deg, rgba(7, 8, 9, .15) 0%, rgba(7, 8, 9, .55) 30%, rgba(7, 8, 9, .92) 48%, #070809 60%),
        url("../img/login-hero-mobile.jpg") 50% 0 / auto 560px no-repeat,
        #070809;
}
.lg-stage { position: relative; max-width: 440px; margin: 0 auto; }

.lg-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 190px; }
.lg-brand { display: flex; align-items: center; gap: 8px; }
.lg-brand img { width: 30px; height: 32px; }
.lg-brand span { font-size: 26px; font-weight: 800; letter-spacing: -0.09em; color: #FBFBFB; }
.lg-links { display: none; }
.lg-lang { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: #E6E6E6; }
.lg-lang svg { width: 17px; height: 17px; }
.lg-lang .lg-lang__caret { width: 12px; height: 12px; }
.lg-hero { display: none; }

.lg-alerts { display: grid; gap: 8px; margin-bottom: 12px; }
.lg-alert { padding: 10px 14px; border-radius: 10px; font-size: 14px; line-height: 1.35; }
.lg-alert--error { background: rgba(229, 72, 77, .15); border: 1px solid rgba(229, 72, 77, .45); color: #FFB9BB; }
.lg-alert--ok { background: rgba(46, 158, 91, .15); border: 1px solid rgba(46, 158, 91, .45); color: #A6E7C1; }

.lg-card {
    position: relative;
    padding: 26px 22px 22px;
    background: linear-gradient(180deg, #0E1113 0%, #090C0F 100%);
    border: 1px solid #323639;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.lg-card__logo { display: block; width: 52px; height: 56px; margin: 0 auto; }
.lg-card__word { margin-top: 6px; text-align: center; font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -0.093em; color: #FBFBFB; }
.lg-eyebrow { margin-top: 10px; text-align: center; font-size: 12px; font-weight: 500; letter-spacing: .4em; padding-left: .4em; text-transform: uppercase; color: #8F9498; }
.lg-card__sub { margin-top: 4px; text-align: center; font-size: 15px; color: #A7ABAF; }

.lg-form { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; margin-top: 16px; }
.lg-label { grid-column: 1 / -1; margin: 12px 0 7px; font-size: 14px; color: #DEDFDF; }
.lg-field { grid-column: 1 / -1; position: relative; height: 50px; border: 1px solid #3A3F43; border-radius: 8px; background: #0E1316; }
.lg-field:focus-within { border-color: rgba(232, 178, 74, .75); box-shadow: 0 0 0 3px rgba(232, 178, 74, .14); }
.lg-ic { position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; color: #AEB1B6; pointer-events: none; }
.lg-input {
    position: absolute; left: 48px; right: 12px; top: 0; bottom: 0; width: auto;
    padding: 0; border: 0; outline: 0; background: transparent;
    color: #F1F2F3; caret-color: #F2C14E; font-size: 16px;
}
.lg-field--pass .lg-input { right: 50px; }
.lg-input::placeholder { color: #6B7074; opacity: 1; }
.lg-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 60px #0E1316 inset !important;
    -webkit-text-fill-color: #F1F2F3 !important;
    caret-color: #F2C14E;
}
.lg-eye { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: transparent; color: #AEB1B6; cursor: pointer; }
.lg-eye svg { width: 22px; height: 22px; }
.lg-eye__on, .lg-eye.is-on .lg-eye__off { display: none; }
.lg-eye.is-on .lg-eye__on { display: block; }
.lg-eye:hover { color: #E6E7E8; background: rgba(255, 255, 255, .05); }
.lg-eye:focus-visible { outline: 2px solid #F2C14E; outline-offset: 0; }

.lg-check { position: relative; display: inline-flex; align-items: center; gap: 13px; margin-top: 16px; font-size: 14.5px; color: #D7D8D9; cursor: pointer; }
.lg-check input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.lg-check__box { width: 21px; height: 20px; flex: 0 0 21px; border-radius: 4px; border: 1.5px solid #4A5055; background: #0E1214; }
.lg-check input:checked + .lg-check__box {
    border-color: #F9CF54;
    background: #F9CF54 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D0802' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.lg-check input:focus-visible + .lg-check__box { outline: 2px solid #F2C14E; outline-offset: 2px; }
.lg-forgot { margin-top: 16px; font-size: 15px; font-weight: 500; color: #D3AE36; white-space: nowrap; }

.lg-btn {
    grid-column: 1 / -1; position: relative; height: 50px; margin-top: 22px;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 8px; cursor: pointer;
    background: linear-gradient(180deg, #FCDD71 0%, #FACE5A 45%, #EDB846 72%, #DEA02E 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
    color: #0D0802; font-size: 17.5px; line-height: 17.5px; font-weight: 600; letter-spacing: -0.02em;
}
.lg-btn svg { position: absolute; right: 18px; top: 13px; width: 24px; height: 24px; }
.lg-btn:hover { filter: brightness(1.05); }
.lg-btn:active { filter: brightness(.96); }
.lg-btn:focus-visible { outline: 2px solid #F2C14E; outline-offset: 2px; }

.lg-or { display: flex; align-items: center; gap: 17px; margin: 20px 0; font-size: 14.5px; line-height: 1; color: #84878C; }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: #262A2E; }

.lg-social {
    width: 100%; height: 51px; margin-bottom: 8px;
    display: flex; align-items: center; justify-content: center; gap: 21px;
    border: 1px solid #4D5256; border-radius: 8px; background: transparent;
    color: #C5C7C8; font-size: 15.3px; letter-spacing: -0.4px; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
.lg-social svg { width: 28px; height: 28px; flex: 0 0 auto; }
.lg-social--apple { gap: 24px; }
.lg-social--apple svg { width: 31px; height: 31px; color: #FFFFFF; }
.lg-social:hover { background: rgba(255, 255, 255, .04); border-color: #6A7075; }
.lg-social:focus-visible { outline: 2px solid #F2C14E; outline-offset: 2px; }

.lg-register { margin-top: 16px; text-align: center; font-size: 15.5px; letter-spacing: -0.02em; color: #979CA0; }
.lg-register a { color: #D7B43B; font-weight: 500; }
.lg-forgot:hover, .lg-register a:hover, .lg-links a:hover, .lg-foot__links a:hover { text-decoration: underline; }

.lg-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin-top: 26px; text-align: center; }
.lg-foot__brand { display: flex; align-items: center; gap: 6px; }
.lg-foot__brand img { width: 19px; height: 21px; }
.lg-foot__brand span { font-size: 16px; font-weight: 800; letter-spacing: -0.1em; color: #F8F8F8; }
.lg-foot__copy { order: 5; width: 100%; font-size: 11px; color: #A2A4A6; }
.lg-foot__links { display: flex; gap: 18px; font-size: 11px; color: #D8DBDC; }
.lg-foot__social, .lg-cta { display: none; }

/* ============================ DESKTOP 1:1 ============================ */
@media (min-width: 1024px) {
    .lg {
        position: relative;
        display: flex; align-items: center; justify-content: center;
        min-height: 100vh; padding: 0; overflow: hidden;
        background: #070809 url("../img/login-bg.jpg") center center / auto calc(1026px * var(--z, 1)) no-repeat;
    }
    .lg-stage {
        position: relative; flex: 0 0 auto;
        width: 1521px; height: 1026px; max-width: none; margin: 0;
        zoom: var(--z, 1);
    }

    /* ---------- menu ---------- */
    .lg-nav { position: absolute; left: 0; top: 0; width: 1521px; height: 80px; margin: 0; display: block; }
    .lg-brand { position: absolute; left: 73px; top: 25px; width: 160px; height: 39px; display: block; }
    .lg-brand img { position: absolute; left: 0; top: 0; width: 36px; height: 39px; }
    .lg-brand span { position: absolute; left: 46px; top: 2.5px; font-size: 33px; line-height: 33px; letter-spacing: -3.6px; white-space: nowrap; }
    .lg-links { position: absolute; left: 299px; top: 40px; display: flex; gap: 39px; font-size: 14px; line-height: 14px; font-weight: 500; letter-spacing: -0.4px; color: #D1D0CD; white-space: nowrap; }
    .lg-lang { position: absolute; left: 1386px; top: 36px; gap: 13px; font-size: 14.5px; line-height: 18px; letter-spacing: -0.8px; }
    .lg-lang svg { width: 18px; height: 18px; }
    .lg-lang .lg-lang__caret { width: 13px; height: 13px; margin-left: 1px; }

    /* ---------- coluna esquerda ---------- */
    .lg-hero { display: block; position: absolute; left: 0; top: 0; width: 760px; height: 948px; }
    .lg-over { position: absolute; left: 80px; top: 151px; font-size: 12px; line-height: 12px; font-weight: 600; letter-spacing: 5.24px; text-transform: uppercase; color: #77756E; }
    .lg-h1 { position: absolute; left: 77px; top: 172px; font-size: 56px; line-height: 51.3px; font-weight: 800; letter-spacing: -2.3px; color: #FCFCFC; white-space: nowrap; }
    .lg-h1 span { display: block; }
    .lg-h1 .g { color: #FBE47E; }
    .lg-rule { position: absolute; left: 79px; top: 403px; width: 70px; height: 4px; border-radius: 2px; background: #F1B63A; }
    .lg-rule--sm { left: 92px; top: 863px; width: 45px; height: 2px; }
    .lg-sub { position: absolute; left: 79px; top: 439px; font-size: 21px; line-height: 25.5px; letter-spacing: -0.35px; color: #C0C2C5; white-space: nowrap; }
    .lg-feats { position: absolute; left: 79px; top: 541px; list-style: none; }
    .lg-feats li { position: relative; width: 300px; height: 66.5px; }
    .lg-feat__ic {
        position: absolute; left: 0; top: 0; width: 54px; height: 54px;
        display: flex; align-items: center; justify-content: center;
        border: 1px solid rgba(249, 213, 86, .42); border-radius: 10px;
        background: rgba(8, 9, 10, .55); color: #F9D556;
    }
    .lg-feat__ic svg { width: 28px; height: 28px; }
    .lg-feat__tx { position: absolute; left: 81px; top: 11.4px; white-space: nowrap; }
    .lg-feat__tx b { display: block; font-size: 14px; line-height: 14px; font-weight: 700; letter-spacing: -0.2px; color: #E5E5E6; }
    .lg-feat__tx small { display: block; margin-top: 8.6px; font-size: 13px; line-height: 13px; letter-spacing: -0.4px; color: #8C8D8F; }
    .lg-quote { position: absolute; left: 88px; top: 883px; font-size: 12.6px; line-height: 17px; font-weight: 500; letter-spacing: 5.8px; text-transform: uppercase; color: #A8AAAC; white-space: nowrap; }

    /* ---------- avisos ---------- */
    .lg-alerts { position: absolute; left: 780px; top: 14px; width: 559px; margin: 0; z-index: 5; }
    .lg-alert { padding: 8px 12px; border-radius: 8px; font-size: 13px; }

    /* ---------- card (x780–1339 · y82–902); filhos relativos à borda interna (781, 83) ---------- */
    .lg-card {
        position: absolute; left: 780px; top: 82px; width: 559px; height: 820px;
        padding: 0; border-radius: 18px; box-shadow: none;
    }
    .lg-card__logo { position: absolute; left: 210px; top: 41px; width: 68px; height: 73px; margin: 0; }
    .lg-card__word { position: absolute; left: 0; right: 0; top: 118.5px; margin: 0; font-size: 55px; line-height: 55px; letter-spacing: -5.1px; padding-left: 5.1px; }
    .lg-eyebrow { position: absolute; left: 0; right: 0; top: 191.3px; margin: 0; font-size: 13.5px; line-height: 13.5px; letter-spacing: 5.38px; padding-left: 5.38px; }
    .lg-card__sub { position: absolute; left: 0; right: 0; top: 213.7px; margin: 0; font-size: 16.7px; line-height: 16.7px; letter-spacing: -0.19px; }

    .lg-form { display: block; margin: 0; }
    .lg-label { position: absolute; left: 67px; margin: 0; font-size: 14.5px; line-height: 14.5px; letter-spacing: 0.14px; }
    .lg-label--email { top: 266.3px; }
    .lg-label--pass { top: 360.3px; }

    .lg-field { position: absolute; left: 67px; width: 426px; height: 51px; }
    .lg-field--email { top: 289px; }
    .lg-field--pass { top: 383px; }
    .lg-field:focus-within { box-shadow: 0 0 0 3px rgba(232, 178, 74, .16); }
    .lg-ic { left: 17px; top: 12px; }
    .lg-field--pass .lg-ic { left: 16px; top: 11px; }
    .lg-input { left: 68px; right: 12px; font-size: 14px; line-height: 49px; letter-spacing: 0.19px; }
    .lg-field--pass .lg-input { right: 52px; }
    .lg-eye { left: 376px; top: 6.5px; right: auto; }
    .lg-eye svg { width: 23px; height: 23px; }

    .lg-check { position: absolute; left: 67px; top: 458px; width: 160px; height: 22px; margin: 0; display: block; }
    .lg-check__box { position: absolute; left: 0; top: 0; }
    .lg-check__lb { position: absolute; left: 34px; top: 3.3px; font-size: 14.5px; line-height: 14.5px; white-space: nowrap; }
    .lg-forgot { position: absolute; left: 358px; top: 461.3px; margin: 0; font-size: 15.4px; line-height: 15.4px; letter-spacing: -0.39px; }

    .lg-btn { position: absolute; left: 67px; top: 505px; width: 423px; height: 50px; margin: 0; padding: 0; font-size: 17.6px; line-height: 17.6px; letter-spacing: -0.31px; }
    .lg-btn svg { right: 18px; top: 13px; }

    .lg-or { position: absolute; left: 67px; top: 579.1px; width: 423px; height: 14.8px; margin: 0; font-size: 14.8px; line-height: 14.8px; }

    .lg-social { position: absolute; left: 67px; width: 424px; margin: 0; padding: 0 18px 0 0; }
    .lg-social--google { top: 616px; }
    .lg-social--apple { top: 675px; padding-right: 11px; }

    .lg-register { position: absolute; left: 0; right: 0; top: 762px; margin: 0; font-size: 16px; line-height: 16px; letter-spacing: -0.5px; }

    /* ---------- rodapé (y948–1026), faixa até as bordas da tela ---------- */
    .lg-foot {
        position: absolute; left: 0; top: 948px; width: 1521px; height: 78px; margin: 0;
        display: block; z-index: 1; text-align: left;
        background: #101315; border-top: 1px solid #222326;
    }
    .lg-foot::before {
        content: ""; position: absolute; top: -1px; bottom: 0; left: -1700px; right: -1700px; z-index: -1;
        background: #101315; border-top: 1px solid #222326;
    }
    .lg-foot__brand { position: absolute; left: 56px; top: 23px; width: 90px; height: 21px; display: block; }
    .lg-foot__brand img { position: absolute; left: 0; top: 0; width: 19px; height: 21px; }
    .lg-foot__brand span { position: absolute; left: 25px; top: 0.8px; font-size: 16.5px; line-height: 16.5px; letter-spacing: -1.7px; white-space: nowrap; }
    .lg-foot__copy { position: absolute; left: 160px; top: 27.6px; width: auto; font-size: 10.9px; line-height: 10.9px; letter-spacing: -0.46px; white-space: nowrap; }
    .lg-foot__links { position: absolute; left: 823px; top: 29px; display: flex; gap: 34px; font-size: 11px; line-height: 11px; letter-spacing: -0.3px; white-space: nowrap; }
    .lg-foot__social { position: absolute; left: 1146px; top: 22px; display: flex; gap: 14px; color: #F2F2F2; }
    .lg-foot__social svg { width: 22px; height: 22px; }
    .lg-cta {
        position: absolute; left: 1303px; top: 15px; width: 160px; height: 37px;
        display: flex; align-items: center; gap: 9px; padding-left: 24px;
        border: 1px solid rgba(222, 223, 223, .55); border-radius: 8px;
        font-size: 13px; line-height: 13px; font-weight: 500; letter-spacing: 0.2px; color: #DEDFDF; white-space: nowrap;
        transition: background-color .15s ease;
    }
    .lg-cta svg { width: 14px; height: 14px; }
    .lg-cta:hover { background: rgba(255, 255, 255, .06); }
    .lg-cta:focus-visible { outline: 2px solid #F2C14E; outline-offset: 2px; }
}

/* ---------- ajuste fino: deslocamentos medidos por correlação de fase (render × referência) ---------- */
@media (min-width: 1024px) {
    .lg-brand span { top: 1.5px; }
    .lg-links { left: 298px; gap: 38px; }
    .lg-lang { left: 1385px; letter-spacing: -1.3px; }
    .lg-over { letter-spacing: 5.57px; }
    .lg-h1 { left: 76px; top: 175px; }
    .lg-rule { height: 5px; }
    .lg-rule--sm { height: 2px; }
    .lg-sub { top: 438.5px; font-size: 21.5px; line-height: 26px; letter-spacing: -0.05px; }
    .lg-feat__ic svg { width: 30px; height: 30px; }
    .lg-quote { top: 880px; font-size: 12px; line-height: 17px; letter-spacing: 1.6px; }
    .lg-card__word { left: -5.5px; right: 5.5px; padding-left: 0; }
    .lg-eyebrow { left: -1px; right: 1px; letter-spacing: 5.48px; }
    .lg-card__sub { left: -2px; right: 2px; }
    .lg-label--email { top: 267.3px; }
    .lg-label--pass { top: 361.3px; }
    .lg-field--pass .lg-input { left: 67px; letter-spacing: -0.06px; }
    .lg-check__lb { top: 4.3px; }
    .lg-btn { font-size: 17.9px; letter-spacing: -0.1px; }
    .lg-social--google { padding-right: 23px; letter-spacing: -0.28px; }
    .lg-social--apple { padding-right: 22px; letter-spacing: -0.27px; }
    .lg-register { left: -1px; right: 1px; letter-spacing: -0.41px; }
    .lg-foot__brand { left: 55px; }
    .lg-foot__links { left: 819px; gap: 33px; }
    .lg-cta { gap: 8px; font-size: 12.3px; letter-spacing: 0; }
    /* 2ª medição: citação 2,3px acima, links do menu 2,7px e CTA 3,5px à direita */
    .lg-quote { top: 882.3px; }
    .lg-links { left: 295.3px; }
    .lg-cta { padding-left: 20.5px; }
}

/* ==========================================================================
   CARD MENOR (pedido do Matheus): sem Google/Apple, 500×650, centralizado na
   altura do título. O card desenhado foi apagado da foto (login-bg.jpg).
   Mesmo centro horizontal da referência (x≈1060); filhos relativos a (card+1).
   ========================================================================== */
@media (min-width: 1024px) {
    .lg-card { left: 810px; top: 167px; width: 500px; height: 650px; }
    .lg-card__logo { left: 215px; top: 34px; }
    .lg-card__word { top: 111.5px; }
    .lg-eyebrow { top: 184.3px; }
    .lg-card__sub { top: 206.7px; }
    .lg-label, .lg-field, .lg-check, .lg-btn { left: 57px; }
    .lg-label--email { top: 260.3px; }
    .lg-field--email { top: 282px; }
    .lg-label--pass { top: 354.3px; }
    .lg-field--pass { top: 376px; }
    .lg-field { width: 384px; }
    .lg-eye { left: 334px; }
    .lg-check { top: 451px; }
    .lg-forgot { left: 311px; top: 454.3px; }
    .lg-btn { top: 498px; width: 384px; }
    .lg-register { top: 590px; }
    .lg-alerts { left: 810px; top: 104px; width: 500px; }
}

/* ==========================================================================
   CADASTRO — mesma moldura do login; o card é em fluxo (5 campos).
   ========================================================================== */
.lg--rg .lg-nav { margin-bottom: 150px; }
.rg-logo { display: block; width: 44px; height: 47px; margin: 0 auto; }
.rg-title { margin: 8px 0 0; text-align: center; font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -0.04em; color: #FBFBFB; }
.rg-sub { margin-top: 6px; text-align: center; font-size: 14.5px; line-height: 1.35; color: #A7ABAF; }
.rg-alert { margin-top: 14px; }
.rg-form { display: block; margin-top: 8px; }
.rg-label { display: block; margin: 12px 0 6px; font-size: 14px; color: #DEDFDF; }
.rg-field { position: relative; height: 48px; border: 1px solid #3A3F43; border-radius: 8px; background: #0E1316; }
.rg-field:focus-within { border-color: rgba(232, 178, 74, .75); box-shadow: 0 0 0 3px rgba(232, 178, 74, .14); }
.rg-field .lg-ic { left: 14px; top: 11px; }
.rg-field .lg-input { left: 48px; right: 12px; line-height: normal; }
.rg-code { text-transform: uppercase; letter-spacing: .06em; }
.rg-code::placeholder { text-transform: none; letter-spacing: normal; }
.rg-btn { width: 100%; }
@media (min-width: 1024px) {
    .lg-card.rg-card { left: 810px; top: 96px; width: 500px; height: auto; padding: 26px 57px 24px; }
    .rg-form .rg-label { position: static; font-size: 14px; line-height: 14px; margin: 11px 0 6px; }
    .rg-field { height: 46px; }
    .rg-field .lg-ic { top: 10px; }
    .rg-field .lg-input { left: 52px; font-size: 14px; }
    .lg-btn.rg-btn { position: relative; left: 0; top: 0; width: 100%; margin-top: 20px; }
    .lg-register.rg-back { position: static; margin-top: 16px; }
}
