/* Login e cadastro */
.auth-page { min-height: 100dvh; display: grid; place-items: center; padding: 28px var(--gutter) 40px; position: relative; isolation: isolate; overflow: hidden; }
.auth-page .aurora { inset: -30% -20%; height: 160%; opacity: 0.35; }
.auth-top { position: fixed; top: 16px; right: 16px; z-index: 5; display: flex; gap: 8px; }
.auth-card { width: min(420px, 100%); padding: clamp(28px, 5vw, 44px); border-radius: 32px; text-align: center; }
.auth-card .mark { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 22px; object-fit: cover; box-shadow: var(--shadow-2); background: var(--surface-solid); }
.auth-card .mark.round { border-radius: 50%; }
.auth-card .mark.initial { display: grid; place-items: center; font-size: 30px; font-weight: 700; color: #fff; background: var(--gradient); }
.auth-card h1 { margin: 0; }
.auth-card .t-foot { margin-top: 6px; }
.auth-card form { display: grid; gap: 14px; margin-top: 28px; text-align: left; }
.auth-card .links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 14.5px; }
.auth-card .links.center { justify-content: center; }
.auth-msg { min-height: 20px; font-size: 14px; text-align: center; color: var(--red); }
.auth-msg.ok { color: var(--green); }
.shake { animation: shake 0.42s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.auth-foot { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; }

/* Cadastro em etapas */
.wizard { width: min(640px, 100%); }
.wizard .auth-card { width: 100%; text-align: left; }
.progress { display: flex; gap: 6px; margin: 0 auto 22px; width: min(640px, 100%); }
.progress i { flex: 1; height: 5px; border-radius: 99px; background: var(--fill); overflow: hidden; position: relative; }
.progress i::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--gradient); border-radius: inherit; transition: width 0.6s var(--ease-out); }
.progress i.done::after { width: 100%; }
.step-pane { display: none; }
.step-pane.on { display: block; animation: pane-in 0.55s var(--ease-out); }
.step-pane.on.back { animation-name: pane-in-back; }
@keyframes pane-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes pane-in-back { from { opacity: 0; transform: translateX(-28px); } }
.step-head { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.step-head .symbol { width: 44px; height: 44px; border-radius: 12px; }
.step-head .symbol svg { width: 24px; height: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.wizard-actions { display: flex; gap: 10px; margin-top: 26px; }
.wizard-actions .btn { flex: 1; }
.wizard-actions .btn.gray { flex: 0 0 auto; }
.wizard-actions .btn:only-child { flex: 1; }
.choice { display: grid; gap: 12px; }
.choice label { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; border: 1.5px solid var(--separator); background: var(--surface-solid); cursor: pointer; transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t-fast) var(--ease); }
.choice label:active { transform: scale(0.99); }
.choice input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.choice label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.choice b { display: block; font-size: 17px; }
.choice small { color: var(--text-2); font-size: 14px; }
.choice .amount { margin-left: auto; font-weight: 700; font-size: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dropzone { display: grid; place-items: center; gap: 6px; text-align: center; padding: 22px; border-radius: 18px; border: 1.5px dashed var(--separator); color: var(--text-2); cursor: pointer; transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease); }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone svg { width: 28px; height: 28px; color: var(--accent); }
.files { display: grid; gap: 8px; margin-top: 10px; }
.files .file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--fill-2); font-size: 14px; }
.files .file svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.files .file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slug-field .addr-input { display: flex; align-items: center; border-radius: var(--r-sm); background: var(--surface-solid); border: 0.5px solid var(--separator); padding-left: 16px; transition: box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.slug-field .addr-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.slug-field .addr-input input { border: 0 !important; box-shadow: none !important; padding-left: 0; background: transparent; font-weight: 600; color: var(--accent); }
.slug-field .addr-input span { color: var(--text-2); padding-right: 16px; white-space: nowrap; }
.slug-status { font-size: 13px; padding-left: 4px; display: flex; gap: 6px; align-items: center; min-height: 18px; }
.slug-status svg { width: 14px; height: 14px; }
.slug-status.ok { color: var(--green); } .slug-status.bad { color: var(--red); } .slug-status.wait { color: var(--text-3); }
.done-hero { text-align: center; padding: 10px 0; }
.done-hero .check { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; animation: pop 0.7s var(--spring); }
.done-hero .check svg { width: 44px; height: 44px; stroke-width: 2.6; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.6s 0.25s var(--ease-out) forwards; }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pay-box { margin-top: 18px; padding: 18px; border-radius: 18px; background: var(--fill-2); display: grid; gap: 10px; justify-items: center; text-align: center; }
.pay-box img { width: 200px; height: 200px; border-radius: 14px; background: #fff; padding: 8px; }
.pay-box code { font-family: var(--font-mono); font-size: 12px; word-break: break-all; padding: 10px; border-radius: 10px; background: var(--surface-solid); max-width: 100%; }
