:root {
  color-scheme: light;
  --auth-canvas: #f4f8ff;
  --auth-surface: #ffffff;
  --auth-soft: #edf5ff;
  --auth-line: #dbe6f4;
  --auth-line-strong: #bfcee1;
  --auth-text: #172033;
  --auth-muted: #66758a;
  --auth-blue: #2563eb;
  --auth-blue-hover: #1d4ed8;
  --auth-blue-dark: #163a74;
  --auth-danger: #b4233a;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--auth-text);
  background: var(--auth-surface);
}

button,
input {
  font: inherit;
}

button,
a,
input {
  outline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--auth-blue);
}

.auth-body {
  min-height: 100vh;
}

.auth-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 40px;
  border-bottom: 1px solid var(--auth-line);
  background: var(--auth-surface);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
  color: var(--auth-text);
  text-decoration: none;
}

.auth-brand > span:last-child,
.auth-brand strong,
.auth-brand small {
  display: block;
}

.auth-brand strong {
  font-size: 15px;
}

.auth-brand small {
  margin-top: 2px;
  color: var(--auth-muted);
  font-size: 11px;
}

.auth-brand-mark {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 38px;
  height: 38px;
  gap: 3px;
  padding: 9px;
  border-radius: 7px;
  background: var(--auth-blue);
}

.auth-brand-mark i {
  display: block;
  width: 4px;
  border-radius: 2px 2px 0 0;
  background: #ffffff;
}

.auth-brand-mark i:nth-child(1) { height: 8px; opacity: 0.72; }
.auth-brand-mark i:nth-child(2) { height: 14px; }
.auth-brand-mark i:nth-child(3) { height: 11px; opacity: 0.86; }

.auth-back {
  color: var(--auth-blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.auth-back:hover {
  color: var(--auth-blue-hover);
}

.auth-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  min-height: calc(100vh - 72px);
}

.auth-context {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 64px max(48px, 8vw);
  border-right: 1px solid var(--auth-line);
  background: var(--auth-canvas);
}

.auth-eyebrow {
  margin: 0 0 10px;
  color: var(--auth-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-context h1 {
  max-width: 620px;
  margin: 0;
  font-size: 40px;
  line-height: 1.12;
}

.auth-context-copy {
  max-width: 610px;
  margin: 20px 0 0;
  color: var(--auth-muted);
  font-size: 16px;
  line-height: 1.65;
}

.auth-signal-list {
  display: grid;
  max-width: 620px;
  margin-top: 42px;
  border-top: 1px solid var(--auth-line-strong);
}

.auth-signal-list div {
  display: grid;
  grid-template-columns: 34px minmax(0, 0.8fr) minmax(160px, 1.2fr);
  align-items: center;
  min-height: 64px;
  gap: 12px;
  border-bottom: 1px solid var(--auth-line);
}

.auth-signal-list span {
  color: var(--auth-blue);
  font-size: 11px;
  font-weight: 800;
}

.auth-signal-list strong {
  font-size: 13px;
}

.auth-signal-list small {
  color: var(--auth-muted);
  font-size: 12px;
}

.auth-security-note {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--auth-blue-dark);
  font-size: 12px;
  line-height: 1.5;
}

.auth-panel {
  align-self: center;
  width: min(420px, calc(100% - 64px));
  margin: 48px auto;
}

.auth-panel-head h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.auth-panel-head > p:last-child {
  margin: 10px 0 0;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.55;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 28px 0 24px;
  padding: 4px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  background: var(--auth-canvas);
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--auth-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.auth-tabs button[aria-selected="true"] {
  border: 1px solid var(--auth-line);
  background: var(--auth-surface);
  color: var(--auth-blue);
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.06);
}

.auth-form {
  display: grid;
  gap: 8px;
}

.auth-form[hidden] {
  display: none;
}

.auth-form label:not(.auth-check) {
  margin-top: 8px;
  color: var(--auth-text);
  font-size: 12px;
  font-weight: 700;
}

.auth-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--auth-line-strong);
  border-radius: 7px;
  padding: 0 12px;
  background: var(--auth-surface);
  color: var(--auth-text);
}

.auth-form input:not([type="checkbox"]):hover {
  border-color: #9fb4cf;
}

.auth-form input:not([type="checkbox"]):focus {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11);
  outline: 0;
}

.field-hint {
  color: var(--auth-muted);
  font-size: 11px;
}

.auth-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin-top: 12px;
  color: var(--auth-muted);
  cursor: pointer;
  font-size: 11px;
  line-height: 1.45;
}

.auth-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--auth-blue);
}

.auth-submit {
  min-height: 44px;
  margin-top: 14px;
  border: 1px solid var(--auth-blue);
  border-radius: 7px;
  background: var(--auth-blue);
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.auth-submit:hover {
  border-color: var(--auth-blue-hover);
  background: var(--auth-blue-hover);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.auth-status {
  min-height: 20px;
  margin: 16px 0 0;
  color: var(--auth-danger);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .auth-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-context {
    display: none;
  }

  .auth-panel {
    width: min(420px, calc(100% - 40px));
  }
}

@media (max-width: 560px) {
  .auth-nav {
    min-height: 64px;
    padding: 0 18px;
  }

  .auth-brand small {
    display: none;
  }

  .auth-back {
    font-size: 12px;
  }

  .auth-main {
    min-height: calc(100vh - 64px);
  }

  .auth-panel {
    width: calc(100% - 36px);
    margin: 32px auto;
  }

  .auth-panel-head h2 {
    font-size: 23px;
  }
}
