/* Sign up / log in */
.auth-wrap { display: grid; grid-template-columns: minmax(380px, 5fr) 7fr; min-height: 100vh; min-height: 100dvh; }

/* left: product summary */
.auth-side { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 28px 48px 32px; border-right: 1px solid var(--line); background: var(--bg-2); }
.side-copy { max-width: 400px; }
.side-copy h2 { margin: 0 0 32px; font-size: 32px; line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.side-copy h2 span { color: var(--dim); }
.side-spec { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.side-spec div { display: flex; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.side-spec div:last-child { border-bottom: 0; }
.side-spec span { color: var(--dim); }
.side-spec b { font-weight: 550; }
.side-steps { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; color: var(--text-2); }
.side-steps li { display: flex; align-items: center; gap: 10px; }
.side-steps span { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; font: 500 11px var(--sans); color: var(--dim); }
.side-legal { margin: 0; max-width: 380px; font-size: 12px; line-height: 1.55; color: var(--faint); }

/* right: form */
.auth-main { display: flex; flex-direction: column; align-items: center; padding: 28px 24px 24px; }
.auth-top { align-self: stretch; display: flex; justify-content: flex-end; align-items: center; height: 32px; }
.m-only { display: none; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--dim); }
.back:hover { color: var(--text); }
.back svg { width: 14px; height: 14px; }
.auth-card { width: 100%; max-width: 380px; margin: auto 0; padding: 40px 0; }
.auth-card h1 { margin: 28px 0 6px; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.025em; }
.auth-card .sub { margin: 0 0 24px; color: var(--dim); font-size: 14px; }
.auth-foot { margin: 0; font-size: 12px; color: var(--faint); text-align: center; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.tab { height: 30px; border: 0; border-radius: 5px; background: transparent; color: var(--dim); font-size: 13px; font-weight: 550; transition: color .12s, background .12s; }
.tab:hover { color: var(--text); }
.tab.on { background: var(--panel-3); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset; }

#authForm { display: flex; flex-direction: column; gap: 14px; }
#authForm .input, #stepX .input { height: 40px; background: var(--panel); }
#authForm .input:focus, #stepX .input:focus { border-color: #50505c; background: var(--panel); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* human check */
.human { position: relative; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; overflow: hidden; user-select: none; transition: border-color .15s; }
.human:hover { border-color: #3a3a44; }
.human:focus-visible { outline: 2px solid rgba(61, 220, 151, .4); outline-offset: 2px; }
.human.busy { cursor: progress; }
.human.ok { cursor: default; border-color: rgba(61, 220, 151, .35); }
.human-box { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 4px; border: 1.5px solid #4a4a55; background: var(--bg); transition: background .15s, border-color .15s; }
.human-check { display: none; }
.human-check svg { width: 13px; height: 13px; color: #04140c; display: block; }
.human.busy .human-box { border-radius: 50%; border-color: var(--line-2); border-top-color: var(--brand); animation: spin .7s linear infinite; }
.human.ok .human-box { background: var(--brand); border-color: var(--brand); }
.human.ok .human-check { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.human-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.human-text b { font-size: 13.5px; font-weight: 550; }
.human-text span { font-size: 12px; color: var(--dim); }
.human-tag { margin-left: auto; font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.human-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.human-bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.human.ok .human-bar { display: none; }

.agree { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--text-2); cursor: pointer; }
.agree input { -webkit-appearance: none; appearance: none; margin: 1px 0 0; width: 16px; height: 16px; flex: none; border: 1.5px solid #4a4a55; border-radius: 4px; background: var(--bg) center / 11px no-repeat; cursor: pointer; transition: background-color .12s, border-color .12s; }
.agree input:checked { background-color: var(--brand); border-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%2304140c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.agree input:focus-visible { outline: 2px solid rgba(61, 220, 151, .4); outline-offset: 2px; }
.agree a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.agree a:hover { text-decoration-color: var(--text); }
#submitBtn { margin-top: 4px; }
.err { min-height: 18px; margin: 0; color: var(--sell); font-size: 13px; }

/* step 2 */
.stepper { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--faint); }
.stepper i { flex: 1; height: 1px; background: var(--line-2); }
.stepper .done { color: var(--dim); }
.stepper .on { color: var(--text); font-weight: 550; }
.post-box { margin-bottom: 18px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.post-box pre { margin: 0; padding: 14px 16px; white-space: pre-wrap; word-break: break-word; font: 14px/1.55 var(--sans); color: var(--text); }
.post-actions { display: flex; justify-content: flex-end; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--line); background: var(--bg-2); }
.req { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--dim); }
#stepX .btn-primary.btn-block { margin-top: 18px; }
#stepX .err { margin-top: 10px; }
#skipX { margin-top: 4px; color: var(--dim); }

/* done */
.done { text-align: center; }
.done-ic { width: 44px; height: 44px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(61, 220, 151, .35); background: rgba(61, 220, 151, .08); color: var(--brand); }
.done-ic svg { width: 20px; height: 20px; }
.done h1 { margin-top: 18px; }

@media (max-width: 960px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .m-only { display: inline-flex; }
  .auth-top { justify-content: space-between; }
}
@media (max-width: 480px) {
  .auth-main { padding: 18px 20px 20px; }
  .auth-card { padding: 28px 0; margin-top: 12px; }
  .auth-card h1 { font-size: 22px; margin-top: 24px; }
  .human-tag { display: none; }
}
