/* Towfu sign-in page (/sign-in/ only; the page's body has .signin-page and its main has .signin).
   Loaded after styles.css + account.css. It mirrors the homepage hero (assets/home.css): the same accent
   tokens, glows, grid floor, eyebrow pill, gradient headline, primary button (inner highlight + accent glow,
   lift on hover) and the framed app window. Every rule is scoped so the other account pages are untouched.
   Motion only runs with prefers-reduced-motion: no-preference (styles.css also stops it under reduce). */

.signin-page {
  /* homepage (home.css) tokens, local to this page */
  --si-accent: #7c85f5;
  --si-accent-strong: #a3a9fa;
  --si-accent-soft: rgba(124, 133, 245, 0.14);
  --si-hair: rgba(255, 255, 255, 0.06);
  --si-hair-2: rgba(255, 255, 255, 0.1);
  --si-line: #1f2023;
  --si-line-strong: #2a2b2f;
  --si-muted: #a1a2aa;
  --si-ok: #4cc38a;
  --si-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: Inter, var(--font);
  overflow-x: hidden;
}
@supports (overflow: clip) { .signin-page { overflow-x: clip; } }
.signin-page ::selection { background: rgba(124, 133, 245, 0.35); }

/* ---- stage: glows and the perspective grid floor, as in the hero ---- */
.signin { position: relative; isolation: isolate; padding: 56px 0 96px; overflow: hidden; }
@supports (overflow: clip) { .signin { overflow: clip; } }
.signin-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.si-glow { position: absolute; border-radius: 50%; filter: blur(70px); }
.si-glow-a { width: 760px; height: 560px; right: -160px; top: -40px; background: radial-gradient(closest-side, rgba(124, 133, 245, 0.28), rgba(124, 133, 245, 0)); }
.si-glow-b { width: 560px; height: 460px; left: -200px; top: 120px; background: radial-gradient(closest-side, rgba(92, 74, 190, 0.2), rgba(92, 74, 190, 0)); }
.si-floor { position: absolute; left: -10%; right: -10%; bottom: -6%; height: 55%; background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-size: 56px 56px; transform: perspective(700px) rotateX(64deg); transform-origin: 50% 100%; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 60% 100%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 60% 100%, #000 10%, transparent 70%); }
.signin::after { content: ''; position: absolute; inset: auto 0 0; height: 140px; z-index: -1; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }

.signin-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.signin-col { position: relative; z-index: 2; }

/* ---- the card (like the homepage price card: accent edge, top glow, deep shadow) ---- */
.signin #app > .card,
.signin noscript .card {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 30px;
  border-radius: 22px;
  border: 1px solid rgba(124, 133, 245, 0.32);
  background: radial-gradient(420px circle at 85% 0%, rgba(124, 133, 245, 0.16), transparent 55%), linear-gradient(180deg, #15161c, #101114);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 30px 80px -40px rgba(124, 133, 245, 0.35);
}
.signin #app > .card h1,
.signin noscript .card h1 { font-size: clamp(1.75rem, 3vw, 2.05rem); line-height: 1.12; letter-spacing: -0.035em; font-weight: 680; margin: 0 0 10px; color: var(--text); }
.signin #app > .card h2 { font-size: 1.3rem; letter-spacing: -0.02em; margin: 0 0 8px; }
.signin #app > .card p,
.signin noscript .card p { color: var(--si-muted); margin: 0 0 12px; }
.signin #app > .card strong { color: var(--text); }
.signin .card a:not(.btn) { color: var(--si-accent-strong); }
.signin .card a:not(.btn):hover { color: #fff; }
.signin .state-card .btn { margin-top: 6px; }

.si-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.si-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #17182a; border: 1px solid rgba(124, 133, 245, 0.45); box-shadow: 0 0 40px rgba(124, 133, 245, 0.32), 0 1px 0 rgba(255, 255, 255, 0.1) inset; }
.si-mark img { width: 26px; height: 26px; }

/* step progress: Email -> Code */
.si-steps { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; font: 600 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #8a8b95; }
.si-steps li { display: flex; align-items: center; gap: 7px; }
.si-steps li + li::before { content: ''; width: 18px; height: 1px; background: var(--si-line-strong); margin-right: 1px; }
.si-step-n { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--si-line-strong); font-size: 10px; letter-spacing: 0; }
.si-steps .is-current { color: var(--si-accent-strong); }
.si-steps .is-current .si-step-n { border-color: rgba(124, 133, 245, 0.6); background: rgba(124, 133, 245, 0.14); color: #c9cdfc; box-shadow: 0 0 16px -4px rgba(124, 133, 245, 0.6); }
.si-steps .is-done { color: #8a8b95; }
.si-steps .is-done .si-step-n { border-color: rgba(76, 195, 138, 0.45); background: rgba(76, 195, 138, 0.12); color: transparent; position: relative; }
.si-steps .is-done .si-step-n::after { content: ''; position: absolute; inset: 4px; background: var(--si-ok); -webkit-mask: var(--si-i-check) center / contain no-repeat; mask: var(--si-i-check) center / contain no-repeat; }
.si-steps .is-done + li::before { background: rgba(76, 195, 138, 0.45); }

/* the eyebrow pill (homepage .eyebrow) */
.si-pill,
.si-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border: 1px solid var(--si-hair-2); border-radius: var(--radius-pill, 999px); background: rgba(255, 255, 255, 0.025); font: 600 11px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--si-accent-strong); margin: 0; }
.si-pill-ico { width: 13px; height: 13px; background: currentColor; -webkit-mask: var(--si-i-lock) center / contain no-repeat; mask: var(--si-i-lock) center / contain no-repeat; }

.signin #app > .card p.si-intro { font-size: 15.5px; line-height: 1.6; color: #b4b5bf; margin-bottom: 22px; }
.si-email { overflow-wrap: anywhere; color: #fff; font-weight: 600; }

/* ---- fields ---- */
.signin .si-field { margin: 0 0 4px; gap: 8px; }
.signin .si-field label { font-size: 14px; font-weight: 600; color: #d9dae2; }
.si-input { position: relative; }
.signin .si-input input {
  min-height: 52px;
  padding: 12px 16px 12px 46px;
  border-radius: 12px;
  border: 1px solid var(--si-line-strong);
  background: #0b0b0d;
  font: 500 16px/1.4 var(--font);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 1px 2px rgba(0, 0, 0, 0.4) inset;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.signin .si-input input::placeholder { color: #6f7079; }
.signin .si-input input:hover { border-color: #3a3b41; }
.signin .si-input input:focus-visible,
.signin .si-input input:focus { outline: 2px solid transparent; outline-offset: 0; border-color: var(--si-accent-strong); background: #0d0d11; box-shadow: 0 0 0 4px rgba(124, 133, 245, 0.2), 0 1px 2px rgba(0, 0, 0, 0.4) inset; }
.si-input-email::before { content: ''; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: #74757e; pointer-events: none; z-index: 1; -webkit-mask: var(--si-i-mail) center / contain no-repeat; mask: var(--si-i-mail) center / contain no-repeat; transition: background 0.2s; }
.si-input-email:focus-within::before { background: var(--si-accent-strong); }
.signin-card:has(.status.bad) .si-input input:not(:focus) { border-color: rgba(240, 106, 106, 0.6); }

/* ---- one-time code: six boxes mirror a single real input laid over them ---- */
.si-otp { position: relative; width: 100%; max-width: 380px; }
.si-cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.si-cells .si-cell:nth-child(3) { margin-right: 8px; }
.si-cell { position: relative; display: grid; place-items: center; height: 60px; border-radius: 12px; border: 1px solid var(--si-line-strong); background: #0b0b0d; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) inset; font: 600 26px/1 var(--mono); color: #fff; font-variant-numeric: tabular-nums; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.si-cell.is-filled { border-color: #3a3b41; background: #101015; }
.si-cell.is-active { border-color: var(--si-accent-strong); box-shadow: 0 0 0 4px rgba(124, 133, 245, 0.2); background: #0d0d11; }
.si-cell.is-active:empty::after { content: ''; width: 2px; height: 26px; border-radius: 1px; background: var(--si-accent-strong); animation: si-blink 1.1s steps(1) infinite; }
.si-cell.is-selected { background: rgba(124, 133, 245, 0.2); border-color: rgba(124, 133, 245, 0.6); }
.si-otp.is-full .si-cell { border-color: rgba(124, 133, 245, 0.45); }
.signin-card:has(.status.bad) .si-cell.is-filled { border-color: rgba(240, 106, 106, 0.6); }
/* focus and selection always win over the error tint, so keyboard users can see where they are */
.signin-card .si-cells .si-cell.is-active { border-color: var(--si-accent-strong); }
.signin-card .si-cells .si-cell.is-selected { border-color: var(--si-accent-strong); background: rgba(124, 133, 245, 0.3); box-shadow: 0 0 0 3px rgba(124, 133, 245, 0.16); }
/* the real input: covers the boxes, its own text and caret are invisible */
.signin .si-otp .code-input {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; min-height: 0;
  margin: 0; padding: 0 0 0 12px; border: 0; border-radius: 12px; background: transparent; box-shadow: none;
  color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent;
  font: 600 26px/1 var(--mono); letter-spacing: 1.2em; text-align: left; cursor: text;
}
.signin .si-otp .code-input::selection { background: transparent; color: transparent; }
.signin .si-otp .code-input:focus,
.signin .si-otp .code-input:focus-visible { outline: none; }
.signin .si-otp .code-input:-webkit-autofill { -webkit-text-fill-color: transparent; transition: background-color 9999s 0s; }
/* forced colours (Windows high contrast): show the real input instead of the mirror */
@media (forced-colors: active) {
  .si-cells { visibility: hidden; }
  .signin .si-otp .code-input { color: CanvasText; -webkit-text-fill-color: CanvasText; caret-color: CanvasText; border: 1px solid CanvasText; letter-spacing: 0.4em; text-align: center; padding: 0; }
  .signin .si-otp .code-input:focus { outline: 2px solid Highlight; }
}
.signin .si-field .hint { font-size: 13px; color: #8a8b95; }

/* ---- status messages: a quiet inline notice with an icon ---- */
.signin .status { display: flex; gap: 9px; align-items: flex-start; min-height: 0; margin: 14px 0 0; font-size: 14px; line-height: 1.5; }
.signin .status:empty { margin: 0; }
.signin .status:not(:empty) { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--si-line-strong); background: rgba(255, 255, 255, 0.025); }
.signin .status:not(:empty)::before { content: ''; flex: none; width: 16px; height: 16px; margin-top: 2px; background: currentColor; -webkit-mask: var(--si-i-info) center / contain no-repeat; mask: var(--si-i-info) center / contain no-repeat; }
.signin .status.ok { color: #6fd3a0; border-color: rgba(76, 195, 138, 0.35); background: rgba(76, 195, 138, 0.08); }
.signin .status.ok::before { -webkit-mask-image: var(--si-i-check); mask-image: var(--si-i-check); }
.signin .status.bad { color: #f4928a; border-color: rgba(240, 106, 106, 0.4); background: rgba(240, 106, 106, 0.08); }
.signin .status.bad::before { -webkit-mask-image: var(--si-i-alert); mask-image: var(--si-i-alert); }
.signin .status.info { color: #c4c5cd; }
.signin .status.info::before { border-radius: 50%; background: none; border: 2px solid rgba(163, 169, 250, 0.3); border-top-color: var(--si-accent-strong); -webkit-mask: none; mask: none; width: 14px; height: 14px; margin: 3px 1px 0; box-sizing: border-box; animation: si-spin 0.8s linear infinite; }

/* ---- buttons: the homepage .button-primary ---- */
.signin .btn-row { margin-top: 18px; }
.signin .btn-row:has(> [hidden]:only-child) { display: none; }
.signin .si-submit {
  position: relative;
  width: 100%;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 10px;
  border: 0;
  background: var(--si-accent);
  color: #0b0c1a;
  font: 650 15.5px/1.2 Inter, var(--font);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 30px -8px rgba(124, 133, 245, 0.55);
  transition: transform 0.25s var(--si-ease), box-shadow 0.25s, background 0.2s, opacity 0.2s;
}
.signin .si-submit::after { content: ''; width: 17px; height: 17px; flex: none; background: currentColor; -webkit-mask: var(--si-i-arrow) center / contain no-repeat; mask: var(--si-i-arrow) center / contain no-repeat; transition: transform 0.25s var(--si-ease); }
.signin .si-submit:hover { background: var(--si-accent-strong); color: #0b0c1a; transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 16px 40px -10px rgba(124, 133, 245, 0.7); }
.signin .si-submit:hover::after { transform: translateX(3px); }
.signin .si-submit:active { transform: translateY(0); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 6px 18px -8px rgba(124, 133, 245, 0.55); }
.signin .si-submit:focus-visible { outline: 2px solid var(--si-accent-strong); outline-offset: 3px; border-radius: 10px; }
/* busy (T.busy sets aria-disabled): spinner in place of the arrow, no lift */
.signin .si-submit[aria-disabled='true'] { opacity: 0.85; cursor: progress; transform: none; background: var(--si-accent); }
.signin .si-submit[aria-disabled='true']::after { width: 16px; height: 16px; border-radius: 50%; background: none; border: 2px solid rgba(11, 12, 26, 0.25); border-top-color: #0b0c1a; -webkit-mask: none; mask: none; box-sizing: border-box; animation: si-spin 0.75s linear infinite; }
.signin .si-secondary { width: 100%; justify-content: center; min-height: 50px; border-radius: 10px; background: #141517; border: 1px solid var(--si-line-strong); color: #fff; font-weight: 600; }
.signin .si-secondary:hover { background: #1a1b1e; border-color: #3a3b41; color: #fff; }
.signin #app > .card .si-fresh { margin: 16px 0 0; }

/* ---- small print and the code step's footer ---- */
.signin #app > .card p.si-legal { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--si-hair); font-size: 13px; color: #8a8b95; }
.si-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--si-hair); }
.signin #app > .card .si-foot p { margin: 0; font-size: 14px; color: #8a8b95; }
.si-foot-actions { display: flex; flex-wrap: wrap; gap: 0 22px; }
.signin .si-link { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--si-accent-strong); font-variant-numeric: tabular-nums; border-radius: 6px; }
.signin .si-link:hover { color: #fff; text-decoration: underline; }
.signin .si-link:focus-visible { outline: 2px solid var(--si-accent-strong); outline-offset: 2px; }
.signin .si-link[aria-disabled='true'] { color: #8a8b95; cursor: not-allowed; text-decoration: none; }

/* ---- loading skeleton: the card's outline, with placeholder lines ---- */
.signin .skeleton {
  min-height: 456px;
  border-radius: 22px;
  border: 1px solid rgba(124, 133, 245, 0.2);
  background:
    linear-gradient(#1c1d23, #1c1d23) 30px 30px / 44px 44px no-repeat,
    linear-gradient(#1c1d23, #1c1d23) 30px 104px / 62% 30px no-repeat,
    linear-gradient(#18191e, #18191e) 30px 150px / 86% 14px no-repeat,
    linear-gradient(#18191e, #18191e) 30px 174px / 70% 14px no-repeat,
    linear-gradient(#18191e, #18191e) 30px 228px / 30% 14px no-repeat,
    linear-gradient(#0b0b0d, #0b0b0d) 30px 254px / calc(100% - 60px) 52px no-repeat,
    linear-gradient(rgba(124, 133, 245, 0.25), rgba(124, 133, 245, 0.25)) 30px 330px / calc(100% - 60px) 52px no-repeat,
    linear-gradient(180deg, #15161c, #101114);
  animation: si-pulse 1.6s ease-in-out infinite;
}
@media (scripting: none) { .signin #app { display: none; } }

/* ---- "What is Towfu" ---- */
.signin-about { position: relative; padding-top: 6px; min-width: 0; }
.signin-about h2 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); line-height: 1.02; letter-spacing: -0.05em; font-weight: 680; margin: 20px 0 16px; }
.si-line { white-space: nowrap; }
.signin-about h2 em { font-style: normal; background: linear-gradient(100deg, #e3e5ff 0%, #a3a9fa 45%, #7c85f5 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.si-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--si-ok); box-shadow: 0 0 0 3px rgba(76, 195, 138, 0.18); }
.si-lede { font-size: clamp(16px, 1.3vw, 17.5px); line-height: 1.6; color: #b4b5bf; max-width: 520px; margin: 0 0 34px; }

/* the framed screenshot: gradient hairline edge, deep shadow and an accent floor glow, like .app-frame */
.si-shot { position: relative; margin: 0 0 36px; perspective: 2000px; perspective-origin: 20% 40%; }
.si-frame { position: relative; border-radius: 14px; background: #070708; transform: rotateX(5deg) rotateY(-9deg) rotateZ(0.5deg); transform-origin: 30% 50%; box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7), 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.si-frame::before { content: ''; position: absolute; inset: -1px; border-radius: 15px; padding: 1px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 30%, rgba(124, 133, 245, 0.25) 70%, rgba(255, 255, 255, 0.06)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: 2; pointer-events: none; }
.si-frame::after { content: ''; position: absolute; left: 4%; right: 4%; bottom: -9%; height: 22%; z-index: -1; background: radial-gradient(closest-side, rgba(124, 133, 245, 0.32), transparent); filter: blur(30px); pointer-events: none; }
.si-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 960; border-radius: 14px; }
.si-shot figcaption { margin-top: 26px; font: 11px/1.5 var(--mono); color: #80818a; }

.si-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--si-hair); }
.si-points li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--si-hair); }
.si-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #15162a; border: 1px solid rgba(124, 133, 245, 0.4); color: var(--si-accent-strong); box-shadow: 0 0 24px -7px rgba(124, 133, 245, 0.36); }
.si-ico svg { width: 18px; height: 18px; }
.si-points b { display: block; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; color: var(--text); margin: 1px 0 2px; }
.si-points span:not(.si-ico) { display: block; font-size: 14px; line-height: 1.55; color: var(--si-muted); }
.si-trust { margin: 22px 0 0; font-size: 13px; color: #8a8b95; display: flex; gap: 8px; align-items: flex-start; }
.si-trust::before { content: ''; flex: none; width: 4px; height: 4px; margin-top: 8px; border-radius: 50%; background: #55565e; }

/* ---- icons (data URIs are allowed by the CSP img-src) ---- */
.signin-page {
  --si-i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='13' rx='2.5'/%3E%3Cpath d='m4.5 7.5 7.5 5.5 7.5-5.5'/%3E%3C/svg%3E");
  --si-i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-5-5 5 5-5 5'/%3E%3C/svg%3E");
  --si-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --si-i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E");
  --si-i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v5.5M12 7.5v.01'/%3E%3C/svg%3E");
  --si-i-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.5'/%3E%3Cpath d='M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5'/%3E%3C/svg%3E");
}

/* ---- motion: entrance rise (as the hero copy), step swaps, slow glow drift ---- */
@keyframes si-blink { 50% { opacity: 0; } }
@keyframes si-spin { to { transform: rotate(360deg); } }
@keyframes si-pulse { 50% { opacity: 0.6; } }
@keyframes si-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes si-swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes si-visual { from { opacity: 0; transform: translate3d(40px, 20px, 0); } to { opacity: 1; transform: none; } }
@keyframes si-drift { 50% { transform: translate3d(-30px, 24px, 0) scale(1.06); } }
@keyframes si-breath { 50% { box-shadow: 0 0 0 6px rgba(76, 195, 138, 0.06); } }
@media (prefers-reduced-motion: no-preference) {
  .signin #app > .card { animation: si-rise 0.8s var(--si-ease) both; }
  .signin #app > .card > * { animation: si-swap 0.5s var(--si-ease) both; }
  .signin #app > .card > :nth-child(2) { animation-delay: 0.04s; }
  .signin #app > .card > :nth-child(3) { animation-delay: 0.08s; }
  .signin #app > .card > :nth-child(4) { animation-delay: 0.12s; }
  .signin #app > .card > :nth-child(n+5) { animation-delay: 0.16s; }
  .signin-about > * { animation: si-rise 0.9s var(--si-ease) both; }
  .signin-about > :nth-child(2) { animation-delay: 0.08s; }
  .signin-about > :nth-child(3) { animation-delay: 0.14s; }
  .signin-about > .si-shot { animation: si-visual 1.2s var(--si-ease) 0.2s both; }
  .signin-about > :nth-child(n+5) { animation-delay: 0.3s; }
  .si-glow-a { animation: si-drift 16s ease-in-out infinite; }
  .si-glow-b { animation: si-drift 20s ease-in-out -6s infinite reverse; }
  .si-live-dot { animation: si-breath 2.4s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .signin .si-submit:hover { transform: none; }
  .si-cell.is-active:empty::after { animation: none; }
}

/* ---- responsive ---- */
@media (min-width: 1100px) {
  .signin-col { position: sticky; top: 92px; }
  .si-shot { margin-right: -60px; }
}
@media (min-width: 1300px) {
  .si-shot { margin-right: -120px; }
}
@media (max-width: 960px) {
  .signin { padding: 40px 0 72px; }
  .signin-grid { grid-template-columns: minmax(0, 1fr); gap: 72px; }
  .signin-col { width: 100%; max-width: 480px; margin-inline: auto; }
  .signin-about { max-width: 640px; margin-inline: auto; width: 100%; padding-top: 0; }
  .si-frame { transform: rotateX(6deg); transform-origin: 50% 0; }
  .si-glow-a { right: -300px; top: -120px; }
}
@media (max-width: 520px) {
  .signin { padding: 24px 0 56px; }
  .signin #app > .card,
  .signin noscript .card { padding: 22px 18px; border-radius: 18px; }
  .signin .skeleton { border-radius: 18px; }
  .si-card-top { margin-bottom: 20px; }
  .si-mark { width: 40px; height: 40px; border-radius: 12px; }
  .si-mark img { width: 23px; height: 23px; }
  .si-cells { gap: 6px; }
  .si-cells .si-cell:nth-child(3) { margin-right: 4px; }
  .si-cell { height: 54px; font-size: 22px; border-radius: 10px; }
  .signin .si-otp .code-input { font-size: 22px; }
  .signin-grid { gap: 56px; }
  .signin-about h2 { font-size: clamp(2rem, 10vw, 2.5rem); }
  .si-frame { transform: none; border-radius: 10px; }
  .si-frame::before { border-radius: 11px; }
  .si-frame img { border-radius: 10px; }
  .si-shot figcaption { margin-top: 18px; }
}
@media (max-width: 370px) {
  .si-steps .si-step-t { display: none; }
  .si-steps li + li::before { width: 12px; }
}
