/* Network: sign in / create account */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 500px; padding: 36px 36px 30px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); animation: rise .6s var(--ease) both; }
.auth-alt { animation: fade-in .6s .25s var(--ease) both; }
.auth-foot { animation: fade-in .6s .35s var(--ease) both; }
.auth-back { position: fixed; top: 20px; left: 20px; z-index: 5; color: var(--text-2); animation: fade-in .5s var(--ease) both; }
.auth-back .icon { transition: transform .2s var(--ease); }
.auth-back:hover .icon { transform: translateX(-3px); }
.auth-head { text-align: center; margin-bottom: 30px; }
.auth-head .logo { margin: 0 auto 18px; color: var(--text); }
.auth-head h1 { font-size: 27px; font-weight: 500; letter-spacing: -0.03em; }
.auth-head p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.auth-form { display: grid; gap: 18px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; margin-top: -6px; }
.link { color: var(--text-2); font-size: 14px; font-weight: 500; }
.link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.auth-legal { margin-top: 20px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-legal a { color: var(--text-2); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--faint); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.soon { height: 20px; padding: 0 7px; border: 1px solid var(--border); border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: var(--faint); display: inline-flex; align-items: center; }
.auth-alt { margin-top: 26px; font-size: 15px; color: var(--muted); }
.auth-alt a { color: var(--text); font-weight: 600; }
.auth-foot { display: flex; align-items: center; gap: 8px; margin-top: 30px; }
.icon-pill { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); }
.icon-pill:hover { color: var(--text); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 14px; background: var(--red-bg); color: var(--red); }
.alert.info { background: var(--blue-bg); color: var(--blue); }
.alert .icon { margin-top: 2px; }
.pw-toggle { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--faint); cursor: pointer; }
.pw-toggle:hover { color: var(--text); background: var(--hover); }
.hint { font-size: 13px; color: var(--muted); }
/* verify: six code boxes */
.verify-tile { margin: 0 auto 18px; }
.auth-head p b { color: var(--text); font-weight: 600; word-break: break-all; }
.otp { display: flex; align-items: center; justify-content: center; gap: 10px; }
.otp .input { width: 52px; height: 60px; padding: 0; text-align: center; font: 600 24px/1 var(--mono); color: var(--text); caret-color: var(--text); }
.otp-dash { width: 10px; height: 2px; border-radius: 2px; background: var(--border-strong); }
.otp.bad { animation: otp-shake .4s var(--ease); }
.otp.bad .input { border-color: var(--red); }
@keyframes otp-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.verify-resend { text-align: center; font-size: 14px; color: var(--muted); }
button.link { padding: 0; border: 0; background: none; font: inherit; font-weight: 500; cursor: pointer; }
button.link:disabled { color: var(--faint); cursor: default; text-decoration: none; }

@media (max-width: 520px) {
  .auth-card { padding: 28px 22px 24px; }
  .otp { gap: 6px; }
  .otp .input { width: 42px; height: 52px; font-size: 21px; }
}
