:root {
  --x-text: #0f1419;
  --x-muted: #536471;
  --x-border: #cfd9de;
  --x-fill: #eff3f4;
  --x-blue: #1d9bf0;
  --banner-bg: #16081f;
  --banner-ink: #ead7ff;
  --banner-warn: #c084fc;
  --banner-lead: #d4c0ee;
  --banner-hint: #b9a3d4;
  --json-bg: #110817;
  --json-panel: #1a1026;
  --json-border: #3b2750;
  --json-ink: #e6d9f7;
  --json-key: #d8b4fe;
  --json-string: #f3e8ff;
  --json-green: #f0abfc;
  --radius-pill: 999px;
  --font: TwitterChirp, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  color: var(--x-text);
  background: #fff;
  line-height: 1.4;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}

.skip-link:focus {
  top: 12px;
}

.edu-banner {
  background: var(--banner-bg);
  color: var(--banner-ink);
  border-bottom: 4px solid var(--banner-warn);
}

.edu-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 22px;
}

.edu-banner__kicker {
  margin: 0 0 6px;
  color: var(--banner-warn);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edu-banner h1 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #fff;
}

.edu-banner__lead {
  margin: 0 0 14px;
  max-width: 72ch;
  color: var(--banner-lead);
  font-size: 0.98rem;
}

.edu-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.edu-steps li {
  background: rgba(192, 132, 252, 0.08);
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--banner-ink);
}

.edu-steps strong {
  display: block;
  color: #fff;
  margin-bottom: 2px;
}

.edu-banner__hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--banner-hint);
}

.edu-banner__hint code {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  color: #fff;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  min-height: calc(100vh - 280px);
}

.login-pane {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 24px 32px;
  background: #fff;
}

.login-pane__frame {
  width: min(100%, 360px);
}

.demo-chip {
  display: inline-block;
  margin: 0 0 18px;
  padding: 4px 10px;
  border: 1px solid #c084fc;
  border-radius: var(--radius-pill);
  background: #f3e8ff;
  color: #6b21a8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.x-brand {
  width: 36px;
  height: 36px;
  color: #000;
  margin-bottom: 28px;
}

.x-logo {
  width: 32px;
  height: 32px;
  display: block;
}

.login-heading {
  margin: 0 0 28px;
  font-size: 2rem;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.oauth-stack {
  display: grid;
  gap: 12px;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
}

.btn:disabled {
  cursor: default;
}

.btn--oauth,
.btn--primary {
  width: 100%;
  height: 44px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn--oauth {
  background: #000;
  color: #fff;
}

.btn--oauth.btn--light {
  background: #fff;
  color: #000;
  border: 1px solid var(--x-border);
}

.btn--oauth:hover {
  filter: brightness(1.08);
}

.btn--oauth.btn--light:hover {
  background: #f7f9f9;
}

.btn--primary {
  background: #0f1419;
  color: #fff;
  margin-top: 8px;
}

.btn--primary:hover:not(:disabled) {
  background: #272c30;
}

.btn--primary:disabled {
  background: #7a7e81;
  color: #fff;
}

.or-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--x-muted);
  font-size: 15px;
}

.or-row::before,
.or-row::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--x-border);
}

.login-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.field input {
  width: 100%;
  height: 56px;
  border: 1px solid var(--x-border);
  border-radius: 4px;
  padding: 16px 12px 0;
  font: inherit;
  font-size: 17px;
  background: #fff;
  color: var(--x-text);
  outline: none;
}

.field {
  position: relative;
}

.field::before {
  content: attr(data-placeholder);
}

.field input::placeholder {
  color: transparent;
}

.field .field__label {
  position: absolute;
  left: 12px;
  top: 18px;
  z-index: 1;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  color: var(--x-muted);
  font-size: 17px;
  pointer-events: none;
  transition: 0.12s ease;
}

.field:focus-within .field__label,
.field.has-value .field__label {
  top: 8px;
  font-size: 13px;
}

.field input:focus {
  border-color: var(--x-blue);
  box-shadow: 0 0 0 1px var(--x-blue);
}

.field__password {
  display: block;
  position: relative;
}

.field__password input {
  padding-right: 72px;
}

.toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--x-blue);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 8px;
}

.fine-print,
.signup-line {
  color: var(--x-muted);
  font-size: 13px;
  line-height: 1.45;
}

.fine-print {
  margin: 18px 0 0;
}

.fine-print span,
.signup-line span {
  color: var(--x-blue);
  font-weight: 500;
}

.signup-line {
  margin: 28px 0 0;
  font-size: 15px;
}

.json-pane {
  background: var(--json-bg);
  color: var(--json-ink);
  border-left: 1px solid var(--json-border);
  display: flex;
  flex-direction: column;
  min-height: 560px;
}

.json-pane__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--json-border);
  background: var(--json-panel);
}

.json-pane__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.json-pane__title code {
  color: #e6edf3;
}

.traffic {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3fb950;
}

.traffic:nth-child(1) {
  background: #ff5f56;
}

.traffic:nth-child(2) {
  background: #ffbd2e;
}

.json-pane__status {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b949e;
}

.json-pane__status.is-live {
  color: var(--json-green);
}

.json-pane__body {
  flex: 1;
  margin: 0;
  padding: 24px 20px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.json-placeholder {
  color: #8b949e;
}

.json-key {
  color: var(--json-key);
}

.json-string {
  color: var(--json-string);
}

.json-punct {
  color: #e6edf3;
}

.json-pane__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--json-border);
  background: var(--json-panel);
}

.json-pane__foot p {
  margin: 0;
  font-size: 12px;
  color: #8b949e;
  max-width: 52ch;
}

.btn--ghost {
  flex-shrink: 0;
  background: transparent;
  color: #e6edf3;
  border: 1px solid var(--json-border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
}

.btn--ghost:hover {
  background: #21262d;
}

.oauth-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: min(92vw, 420px);
  background: #0f1419;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  z-index: 10;
}

.x-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  padding: 16px 20px 24px;
  color: var(--x-muted);
  font-size: 13px;
  border-top: 1px solid var(--x-fill);
}

@media (max-width: 960px) {
  .edu-steps {
    grid-template-columns: 1fr;
  }

  .stage {
    grid-template-columns: 1fr;
  }

  .json-pane {
    min-height: 420px;
    border-left: 0;
    border-top: 1px solid var(--json-border);
  }

  .login-pane {
    padding: 32px 20px 24px;
  }
}

@media (max-width: 640px) {
  .edu-banner__inner {
    padding: 16px;
  }

  .json-pane__bar,
  .json-pane__foot {
    flex-direction: column;
    align-items: flex-start;
  }
}
