/* ==========================================================================
   SPORTGEST — Login e Assinatura (usa os tokens de landing.css)
   ========================================================================== */
.page-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-main { display: flex; flex-direction: column; padding: 32px 48px; }
.auth-main .brand { align-self: flex-start; }
.auth-box { width: 100%; max-width: 420px; margin: auto; padding: 48px 0; }
.auth-box h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.auth-box .sub { color: var(--muted); margin-top: 8px; margin-bottom: 32px; }
.auth-foot { font-size: 14px; color: var(--muted); }

/* Campos */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 8px; }
.field label a, .field label small { font-weight: 500; font-size: 14px; color: var(--muted); }
.field label a { color: var(--court); text-decoration: none; }
.field input, .field select {
    font: 400 16px var(--f-body); color: var(--ink);
    padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--court); box-shadow: 0 0 0 3px var(--court-soft); }
.field.invalid input { border-color: #C7362F; box-shadow: 0 0 0 3px #FBE3E1; }
.field .hint { font-size: 13px; color: var(--muted); }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 76px; }
.pass-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--court); font: 600 14px var(--f-body); padding: 8px 10px; cursor: pointer; border-radius: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-uf { display: grid; grid-template-columns: 1fr 104px; gap: 0 14px; }

.alert { padding: 13px 16px; border-radius: var(--r-sm); font-size: 15px; margin-bottom: 20px; }
.alert-error { background: #FDECEC; color: #8A1C1C; }
.alert-ok { background: var(--court-soft); color: var(--court-dark); }

/* Painel lateral: piso de quadra */
.auth-side {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; padding: 48px;
    background:
        radial-gradient(circle at 50% 50%, transparent 110px, rgba(255,255,255,.22) 110px, rgba(255,255,255,.22) 112px, transparent 112px),
        linear-gradient(0deg, transparent calc(50% - 1px), rgba(255,255,255,.22) calc(50% - 1px), rgba(255,255,255,.22) calc(50% + 1px), transparent calc(50% + 1px)),
        linear-gradient(160deg, #13936A 0%, var(--court) 55%, var(--court-dark) 100%);
    box-shadow: inset 0 0 0 24px var(--court), inset 0 0 0 26px rgba(255,255,255,.3);
}
.side-card { position: relative; width: 100%; max-width: 380px; background: #fff; border-radius: var(--r-md); box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); overflow: hidden; }
.side-card header { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.side-card header strong { display: block; font: 700 16px/1.2 var(--f-display); color: var(--ink); }
.side-card header span { font-size: 13px; color: var(--muted); }
.medals { width: 100%; border-collapse: collapse; font-size: 14px; }
.medals th { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; padding: 10px 6px; }
.medals th:first-child, .medals td:first-child { text-align: left; padding-left: 20px; }
.medals td { padding: 10px 6px; text-align: center; border-top: 1px solid var(--line); color: var(--text); }
.medals td:first-child { color: var(--ink); font-weight: 600; }
.medals td:last-child, .medals th:last-child { padding-right: 20px; font-weight: 700; color: var(--ink); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot.g { background: var(--gold); } .dot.s { background: var(--silver); } .dot.b { background: #B06E3C; }
.side-quote { position: absolute; left: 48px; right: 48px; bottom: 44px; color: #fff; font: 600 18px/1.4 var(--f-display); max-width: 30ch; }

/* ---------- Assinatura ---------- */
.page-sub { background: var(--tint); min-height: 100vh; }
.sub-top { background: #fff; border-bottom: 1px solid var(--line); }
.sub-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.sub-top a.back { color: var(--muted); text-decoration: none; font-size: 15px; }
.sub-top a.back:hover { color: var(--court); }

.sub-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 40px; padding-bottom: 64px; }
.sub-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; }
.sub-panel h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.sub-panel .sub { color: var(--muted); margin: 8px 0 28px; }
.sub-panel h2 { font-size: 16px; font-weight: 700; margin: 8px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.sub-panel h2:first-of-type { border-top: 0; padding-top: 0; }

.steps { list-style: none; padding: 0; margin: 0 0 28px; display: flex; gap: 8px; }
.steps li { flex: 1; font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--line); }
.steps li.on { color: var(--court-dark); border-top-color: var(--court); }

.summary { position: sticky; top: 24px; }
.summary .sub-panel { padding: 28px; }
.summary h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.plan-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.plan-opt:hover { border-color: #B9D6C8; }
.plan-opt input { accent-color: var(--court); width: 18px; height: 18px; margin: 0; }
.plan-opt .po-name { font-weight: 700; color: var(--ink); }
.plan-opt .po-lim { display: block; font-size: 13px; color: var(--muted); }
.plan-opt .po-price { margin-left: auto; font: 700 17px/1 var(--f-display); color: var(--ink); white-space: nowrap; }
.plan-opt:has(input:checked) { border-color: var(--court); background: #F6FBF8; }
.plan-opt.locked { pointer-events: none; opacity: .55; }
.plan-opt.locked:has(input:checked) { opacity: 1; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--line); }
.total strong { font: 800 28px/1 var(--f-display); color: var(--ink); }
.summary ul { list-style: none; padding: 0; margin: 18px 0 0; font-size: 14px; color: var(--text); }
.summary li { padding: 5px 0 5px 22px; position: relative; }
.summary li::before { content: ''; position: absolute; left: 0; top: 10px; width: 12px; height: 7px; border-left: 2px solid var(--court); border-bottom: 2px solid var(--court); transform: rotate(-45deg); }

/* PIX */
.pix { text-align: center; }
.pix-qr { display: inline-block; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); margin: 8px 0 20px; background: #fff; }
.pix-qr img { width: 232px; height: 232px; image-rendering: pixelated; }
.pix-copy { display: flex; gap: 8px; text-align: left; }
.pix-copy input { flex: 1; min-width: 0; font: 400 13px ui-monospace, Menlo, Consolas, monospace; color: var(--text); padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--tint); }
.pix-how { text-align: left; margin: 24px 0 0; padding: 0 0 0 20px; color: var(--text); font-size: 15px; }
.pix-how li { padding: 3px 0; }
.pix-status { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; padding: 14px; border-radius: var(--r-sm); background: #FFF6E5; color: #6E4A00; font-weight: 600; font-size: 15px; }
.pix-status .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.pix-status.expired { background: #FDECEC; color: #8A1C1C; }
.pix-status.expired .spin { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.done { text-align: center; padding: 24px 0; }
.done-mark { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--court); position: relative; }
.done-mark::after { content: ''; position: absolute; left: 24px; top: 20px; width: 24px; height: 14px; border-left: 4px solid #fff; border-bottom: 4px solid #fff; transform: rotate(-45deg); }
.done h1 { margin-bottom: 8px; }

[hidden] { display: none !important; }

@media (max-width: 960px) {
    .page-auth { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .auth-main { padding: 24px; }
    .sub-layout { grid-template-columns: 1fr; }
    .summary { position: static; order: -1; }
}
@media (max-width: 560px) {
    .sub-panel { padding: 24px 20px; }
    .grid2 { grid-template-columns: 1fr; }
    .pix-qr img { width: 200px; height: 200px; }
    .auth-box h1 { font-size: 30px; }
}
