/* Design tokens: vault/reference/lms-design-handoff/README.md. Do not approximate. */
:root {
  --page: #F5F5F2;
  --surface: #FFFFFF;
  --surface-subtle: #FAFAF8;
  --track: #EAEAE6;
  --track-hover: #EFEFEB;
  --track-alt: #F0F0EC;
  --chip: #EDEDEA;
  --border: #E3E3DF;
  --divider: #ECECE8;
  --border-strong: #D4D4CF;

  --ink: #111111;
  --body: #2B2B29;
  --secondary: #3F3F3C;
  --muted: #6E6E6A;
  --label: #8C8C87;
  --faint: #A6A6A0;
  --disabled: #C4C4BE;

  --yellow: #E6FF3D;
  --yellow-tint: #F8FFD1;
  --yellow-border: #DDEB6E;
  --blue: #3B6CFF;
  --blue-tint: #E8EEFF;
  --blue-text: #1F48D6;
  --green: #3DF58A;
  --green-dot: #2FE07A;

  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration-color: var(--disabled); text-underline-offset: 3px; }
a:hover { color: var(--blue); text-decoration-color: var(--blue); }
button { font: inherit; cursor: pointer; }
input:focus, textarea:focus { outline: none; border-color: var(--ink) !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible { outline: none; }

@keyframes caretBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---- shared pieces ---- */
.logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
}
.logo .slash { color: var(--faint); }
a.logo:hover { color: var(--ink); }
a.logo:hover .poe { background: var(--ink); color: var(--yellow); }
.logo .poe { background: var(--yellow); padding: 1px 6px; border-radius: 4px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--label); text-transform: uppercase; }
.section-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--label); text-transform: uppercase; }
.caret {
  display: inline-block;
  width: 0.5em;
  height: 1.1em;
  background: var(--yellow);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: caretBlink 1s steps(1) infinite;
}

/* ---- sign in ---- */
.signin { min-height: 100vh; display: flex; flex-direction: column; }
.signin-header { padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.signin-date { font-family: var(--mono); font-size: 12px; color: var(--label); }
.signin-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 20px 64px; }
.signin-col { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 28px; }
.signin-intro { display: flex; flex-direction: column; gap: 12px; }
.signin-h1 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(34px, 7vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  position: relative;
}
.signin-h1 .reserve { visibility: hidden; }
.signin-h1 .typed { position: absolute; inset: 0; }
.signin-h1 .caret { width: 0.45em; height: 0.95em; margin-left: 4px; vertical-align: -0.1em; }
.signin-sub { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.stack-14 { display: flex; flex-direction: column; gap: 14px; animation: riseIn 200ms ease; }
.helper { font-size: 13px; color: var(--muted); line-height: 1.5; }

.btn-ink {
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #FFFFFF;
  font-family: var(--mono);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  text-decoration: none;
  transition: transform .12s, opacity .15s;
}
.btn-ink:hover { color: #FFFFFF; }
.btn-ink:active { transform: scale(0.99); }
.btn-ink:disabled { opacity: 0.35; cursor: default; }
.btn-ink.short { height: 48px; }
.btn-ink.ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--border-strong); }
.btn-ink.ghost:hover { color: var(--ink); border-color: var(--ink); }
.demo-bar {
  background: var(--yellow); color: var(--ink); font-family: var(--mono); font-size: 12px; text-align: center;
  padding: 7px 16px; letter-spacing: 0.02em;
}
.btn-ink .arrow { color: var(--yellow); }
.ms-mark { display: grid; grid-template-columns: 7px 7px; gap: 2px; }
.ms-mark span { width: 7px; height: 7px; background: #FFFFFF; }

.account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  flex: none;
}
.account-chip .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.account-chip .name { font-size: 14px; font-weight: 500; }
.account-chip .email { font-size: 12px; color: var(--label); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-button {
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--label);
  padding: 4px;
}
.link-button:hover { color: var(--ink); }

.field { display: flex; flex-direction: column; gap: 8px; }
.code-input {
  height: 64px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-align: center;
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}
.code-input.error, .code-input.ready { border-color: var(--ink); }
.code-input.shake { animation: shake 320ms ease; }
.text-input {
  height: 52px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 16px;
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}

.alert {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--yellow-tint);
  border: 1px solid var(--yellow-border);
  border-radius: 10px;
  padding: 10px 12px;
  animation: popIn 160ms ease;
}
.alert .bang {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  flex: none;
}

.joined-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: riseIn 200ms ease;
}
.joined-card .title-row { display: flex; align-items: center; gap: 10px; }
.check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.joined-card .title { font-family: var(--mono); font-size: 16px; font-weight: 500; }
.joined-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--body); }

.viewer-note { border-top: 1px solid var(--border); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.viewer-note .q { font-size: 13px; color: var(--secondary); }
.viewer-note .a { font-size: 13px; line-height: 1.5; color: var(--muted); }
.viewer-note .a a { color: var(--ink); }
.text-input.viewer-code { text-transform: uppercase; letter-spacing: 0.12em; }

.signin-footer {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}
.signin-footer a { color: var(--label); }
