:root {
  --ink: #0f1729;
  --ink-soft: #475067;
  --muted: #8a93a6;
  --line: #e6e8ee;
  --surface: #ffffff;
  --bg: #f5f6fa;
  --accent: #2f4bff;
  --accent-ink: #1a32d6;
  --danger: #c4314b;
  --danger-bg: #fdecef;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 41, 0.04),
    0 12px 32px -12px rgba(15, 23, 41, 0.18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

/* Author display rules (e.g. .card--center) would otherwise beat the UA
   [hidden] rule; keep hidden views hidden regardless. */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 50% -10%, #eef1ff 0%, transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  padding: 32px 20px;
}

.shell {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Brand */
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 24px;
}
.brand__mark {
  font-size: 26px;
  line-height: 1;
  color: var(--accent);
  transform: translateY(2px);
}
.brand__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand__sub {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
}
.card--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 28px;
}
.card__title {
  margin: 0;
  font-size: 22px;
  font-weight: 680;
  letter-spacing: -0.02em;
}
.card__lede {
  margin: 6px 0 22px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}
.card__foot {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Fields */
.field {
  display: block;
  margin-bottom: 16px;
}
.field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.field input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbfd;
  color: var(--ink);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.field input::placeholder {
  color: #b6bccb;
}
.field input:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 75, 255, 0.15);
}

/* Buttons */
.btn {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  padding: 11px 18px;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.05s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  width: 100%;
  margin-top: 4px;
  color: #fff;
  background: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-ink);
}
.btn--primary:disabled {
  opacity: 0.7;
  cursor: progress;
}
.btn--ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-soft);
  padding: 8px 14px;
  font-size: 14px;
}
.btn--ghost:hover {
  border-color: #cfd4e0;
  color: var(--ink);
}
.btn__spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  display: none;
  animation: spin 0.6s linear infinite;
}
.btn.is-loading .btn__label {
  opacity: 0.85;
}
.btn.is-loading .btn__spinner {
  display: inline-block;
}

/* Error */
.error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 13.5px;
  line-height: 1.45;
}

/* Session view */
.session__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.session__head .card__lede {
  margin-bottom: 0;
}
.tiles {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.tile {
  display: grid;
  gap: 2px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfbfd;
  position: relative;
}
.tile__title {
  font-weight: 640;
  font-size: 14.5px;
}
.tile__hint {
  font-size: 13px;
  color: var(--ink-soft);
}
.tile__soon {
  position: absolute;
  top: 13px;
  right: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  background: #eef0f5;
  border-radius: 999px;
  padding: 3px 9px;
}

/* Misc */
.muted {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.legal {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding-bottom: 8px;
}
.spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner,
  .btn__spinner {
    animation: none;
  }
}
