:root {
  --bg: #f1f3f4;
  --surface: #ffffff;
  --surface-2: #f8f9fa;
  --border: #e8eaed;
  --border-strong: #dadce0;
  --ink: #0a0a0a;
  --ink-2: #27272a;
  --ink-3: #52525b;
  --ink-4: #a1a1aa;
  --ink-5: #d4d4d8;

  --ok-bg: #ecfdf5;
  --ok-ink: #065f46;
  --ok-bd: #a7f3d0;
  --warn-bg: #fffbeb;
  --warn-ink: #854d0e;
  --warn-bd: #fde68a;
  --info-bg: #eff6ff;
  --info-ink: #1e40af;
  --info-bd: #bfdbfe;
  --danger-bg: #fef2f2;
  --danger-ink: #991b1b;
  --danger-bd: #fecaca;

  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-2: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-3: 0 10px 30px rgba(10, 10, 10, 0.08), 0 2px 6px rgba(10, 10, 10, 0.04);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body.login-body {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.login-body a {
  color: inherit;
}

body.login-body button {
  font-family: inherit;
  cursor: pointer;
}

/* shell — split layout */
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }
}

/* left (form) */
.left {
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 32px 40px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand .mk {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
}

.left-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.left-top .meta {
  font-size: 12.5px;
  color: var(--ink-3);
}

.left-top .meta a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 0;
}

.h1 {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 8px;
}

.sub {
  font-size: 14.5px;
  color: var(--ink-3);
  margin: 0 0 28px;
  line-height: 1.55;
}

.sub a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-4);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 18px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field .row {
  display: flex;
  align-items: center;
}

.field label {
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 500;
}

.field .hint {
  margin-left: auto;
  font-size: 12px;
}

.field .hint a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.field .hint a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.input-wrap {
  position: relative;
}

.input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 0 14px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.input.with-icon {
  padding-left: 38px;
}

.input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.input-wrap .ic {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-4);
  pointer-events: none;
}

.input-wrap .ic svg {
  width: 16px;
  height: 16px;
}

.eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye:hover {
  background: var(--surface-2);
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 6px 0 18px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.check input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  cursor: pointer;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.check input:checked {
  background: var(--ink);
  border-color: var(--ink);
}

.check input:checked::after {
  content: "✓";
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink-2);
  height: 44px;
  padding: 0 18px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transition: background 0.12s, transform 0.08s;
}

.btn:hover {
  background: var(--surface-2);
}

.btn.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn.primary:hover {
  background: #262626;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.tip {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
  text-align: center;
}

.tip a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 18px;
}

.banner svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
}

.banner b {
  font-weight: 600;
}

.banner.info {
  background: var(--info-bg);
  border: 1px solid var(--info-bd);
  color: var(--info-ink);
}

.banner.danger {
  background: var(--danger-bg);
  border: 1px solid var(--danger-bd);
  color: var(--danger-ink);
}

.left-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-4);
  flex-wrap: wrap;
  gap: 10px;
}

.left-foot .links {
  display: flex;
  gap: 14px;
}

.left-foot a {
  color: var(--ink-3);
}

.left-foot a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* validation */
.field-validation-error,
.validation-summary-errors {
  font-size: 12.5px;
  color: var(--danger-ink);
  margin-top: 4px;
}

.validation-summary-errors {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.validation-summary-errors li + li {
  margin-top: 4px;
}

/* right panel */
.right {
  background: linear-gradient(180deg, #f8f9fa 0%, #eceff1 100%);
  border-left: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

@media (max-width: 980px) {
  .right {
    display: none;
  }
}

.right::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(10, 10, 10, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 10, 10, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  pointer-events: none;
}

.right-inner {
  position: relative;
  z-index: 1;
  max-width: 460px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px 5px 6px;
  align-self: flex-start;
}

.eyebrow .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.right h2 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
  max-width: 420px;
}

.right p {
  font-size: 14.5px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.55;
  max-width: 400px;
}

.live {
  margin-top: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-3);
  overflow: hidden;
}

.live .head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.live .head .lo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
}

.live .head h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
}

.live .head small {
  color: var(--ink-3);
  font-size: 11.5px;
  display: block;
  margin-top: 1px;
}

.live .head .right-tag {
  margin-left: auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  background: #f4f4f5;
  color: var(--ink-3);
  border: 1px solid var(--border);
}

.tag.dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.tag.info {
  background: var(--info-bg);
  color: var(--info-ink);
  border-color: var(--info-bd);
}

.tag.ok {
  background: var(--ok-bg);
  color: var(--ok-ink);
  border-color: var(--ok-bd);
}

.live .body {
  padding: 16px 18px;
}

.live h3 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.live .what {
  color: var(--ink-3);
  font-size: 13px;
}

.live .when {
  margin: 14px 0 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
}

.live .when .l {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-4);
  font-weight: 600;
}

.live .when .v {
  font-size: 15.5px;
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: -0.005em;
}

.live .when .s {
  color: var(--ink-3);
  font-size: 12px;
}

.track {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  position: relative;
}

.track::before {
  content: "";
  position: absolute;
  left: 7.5px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--border-strong);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  position: relative;
}

.step .b {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border-strong);
  flex: none;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9px;
}

.step.done .b {
  background: var(--ok-ink);
  border-color: var(--ok-ink);
}

.step.now .b {
  background: var(--ink);
  border-color: var(--ink);
}

.step.now .b::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.step .nm {
  font-size: 13px;
  font-weight: 600;
}

.step .nm small {
  display: block;
  font-weight: 400;
  color: var(--ink-3);
  font-size: 11.5px;
  margin-top: 1px;
  font-family: var(--font-mono);
}

.step.done .nm {
  color: var(--ink-3);
}

.step.upcoming .nm {
  color: var(--ink-4);
  font-weight: 500;
}

.kb {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
}

.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  background: #fff;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--ink-3);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
