/* The sign-in. Two halves on a wide screen: the dark chrome of the desk's top
   bar on the left, carrying the name and the six stations as a quiet
   preview of what is behind the door, and the white card a person acts on at
   the right. On a phone the brand shrinks to a band above the form. */

body.signin { min-height: 100vh; background: var(--ground); }
main.si-wrap { max-width: none; margin: 0; padding: 0; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }

.si-brand {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 40px 48px; background: var(--chrome); color: var(--on-chrome);
}
.si-brand::after {
  content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%;
  border: 46px solid var(--signal); opacity: .08; pointer-events: none;
}
.si-mark { font-size: 19px; }
.si-pitch { max-width: 30ch; }
.si-eyebrow { margin: 0 0 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); }
.si-brand h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }

/* The six stations as a vertical rail, lit one after another. */
.si-belt { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; max-width: 260px; }
.si-belt::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--chrome-line); }
.si-belt li { position: relative; display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--chrome-soft); }
.si-belt i {
  position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 99px; flex: none;
  background: var(--chrome); border: 2px solid currentColor;
  animation: si-lit 9s ease-in-out infinite;
}
.si-belt li.ai  { --lit: #b0a4f2; }
.si-belt li.pr  { --lit: #5fc9c2; }
.si-belt li.you { --lit: var(--signal); }
.si-belt li:nth-child(2) i { animation-delay: 1.5s; }
.si-belt li:nth-child(3) i { animation-delay: 3s; }
.si-belt li:nth-child(4) i { animation-delay: 4.5s; }
.si-belt li:nth-child(5) i { animation-delay: 6s; }
.si-belt li:nth-child(6) i { animation-delay: 7.5s; }
@keyframes si-lit {
  0%, 22%, 100% { background: var(--chrome); border-color: var(--chrome-soft); box-shadow: none; }
  6%, 14%       { background: var(--lit); border-color: var(--lit); box-shadow: 0 0 0 5px rgba(255, 255, 255, .06); }
}
@media (prefers-reduced-motion: reduce) {
  .si-belt i { animation: none; border-color: var(--lit); }
}
.si-foot { margin: 0; font-size: 12.5px; color: var(--chrome-soft); }

.si-panel { display: grid; place-items: center; padding: 40px 24px; }
.si-form {
  width: min(400px, 100%); display: grid; gap: 6px;
  padding: 34px 32px 28px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2);
}
.si-form h2 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.si-sub { margin: 4px 0 18px; font-size: 14px; color: var(--ink-2); }
.si-form label { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.si-form input[type="text"], .si-form input:not([type]), .si-form input[type="password"] {
  width: 100%; padding: 11px 13px; font-size: 15px; border-radius: var(--radius-s);
  border: 1px solid var(--line-firm); background: var(--surface); color: var(--ink);
}
.si-form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--signal-wash); }
.si-pass { position: relative; }
.si-pass input { padding-right: 70px; }
.si-show {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  padding: 5px 10px; font-size: 12.5px; border: 0; background: transparent; color: var(--ink-3);
}
.si-show:hover { background: var(--surface-2); color: var(--ink); }
.si-caps { margin: 4px 0 0; font-size: 12.5px; color: var(--signal-ink); }
.si-caps[hidden] { display: none; }
.si-go {
  margin-top: 20px; justify-content: center; padding: 12px 16px; font-size: 15px; font-weight: 600;
  background: var(--ink); border-color: var(--ink); color: var(--on-ink);
}
.si-go:hover { background: var(--ink-2); border-color: var(--ink-2); }
.si-go:disabled { opacity: .7; }
.si-error, .si-note { margin: 0 0 6px; padding: 10px 12px; border-radius: var(--radius-s); font-size: 14px; }
.si-error { background: var(--stop-wash); border: 1px solid var(--stop-edge); color: var(--stop); }
.si-note  { background: var(--cool-wash); border: 1px solid var(--cool-edge); color: var(--cool); }
.si-error p, .si-note p { margin: 0; }
.si-error p + p { margin-top: 4px; }
.si-small { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--ink-3); }

@media (max-width: 820px) {
  main.si-wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .si-brand { padding: 22px 20px; gap: 14px; }
  .si-brand h1 { font-size: 22px; }
  .si-belt, .si-foot, .si-eyebrow { display: none; }
  .si-panel { place-items: start center; padding: 24px 16px 40px; }
  .si-form { padding: 26px 20px 22px; }
}
