/* Страница входа — классы 1:1 из docs/design/login.dc.html. */

html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--link); }
a:hover { color: var(--ink); }
*, *::before, *::after { box-sizing: border-box; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: inherit;
}
button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
input { font-family: inherit; }
input:focus-visible { outline: 0; }
[hidden] { display: none !important; }

@keyframes tok-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

.login {
  min-width: 1180px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 5fr 7fr;
}

/* ---------- левая тёмная колонка ---------- */
.hero {
  background: var(--ink);
  color: var(--on-dark);
  padding: 36px 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.deco-mint {
  position: absolute;
  bottom: -300px;
  right: -200px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: var(--mint);
}
.deco-ring {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 38px solid var(--lavender);
}
.deco-pill {
  position: absolute;
  top: 150px;
  right: -40px;
  width: 120px;
  height: 36px;
  border-radius: 999px;
  background: var(--peach);
}
.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--on-dark);
}
.brand:hover { color: var(--on-dark); }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--mint);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
}
.brand-name { font-weight: 700; font-size: 18px; }

.hero-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 420px;
}
.hero-title {
  margin: 0;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 800;
}
.hero-title .accent { color: var(--mint); }
.hero-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--on-dark-3);
  font-weight: 300;
}
.hero-point { display: flex; gap: 12px; align-items: center; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.hero-dot--mint { background: var(--mint); }
.hero-dot--lavender { background: var(--lavender); }
.hero-dot--peach { background: var(--peach); }

.hero-status {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--on-dark-2);
}
.hero-status a { color: var(--on-dark-2); text-decoration: none; }
.hero-status a:hover { color: var(--on-dark); }
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  animation: tok-blink 1.6s infinite;
}

/* ---------- правая колонка ---------- */
.pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth {
  width: 460px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  align-self: flex-start;
}
.tab {
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
}
.tab.is-active { background: var(--ink); color: var(--white); }

.auth-head { display: flex; flex-direction: column; gap: 10px; }
.auth-title {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}
.auth-sub {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  font-weight: 300;
}

.step {
  background: var(--white);
  border-radius: 36px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 30px 60px -40px rgba(22, 32, 28, .3);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 12px; color: var(--muted); }
.input {
  font-family: inherit;
  font-size: 16px;
  padding: 16px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--outline);
  outline: 0;
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.input:focus { border-color: var(--ink); }
.input--code {
  font-size: 32px;
  letter-spacing: .35em;
  padding: 14px 20px;
  border-radius: 24px;
  border-color: var(--ink);
  font-weight: 700;
}

.btn-main {
  padding: 18px 28px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  width: 100%;
}
.btn-main:hover { background: var(--ink); color: var(--white); }
.btn-main.is-dim { opacity: .4; }
.btn-ink {
  padding: 18px 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  width: 100%;
}
.btn-ink:hover { background: var(--mint); color: var(--ink); }
.btn-ink.is-dim { opacity: .4; }

.or {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}
.or::before, .or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--divider);
}
.providers { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.providers--1 { grid-template-columns: 1fr; }
.providers--2 { grid-template-columns: repeat(2, 1fr); }
.provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--outline);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}
.provider:hover { border-color: var(--ink); color: var(--ink); }
.p-icon { width: 10px; height: 10px; flex: none; }
.p-icon--telegram { border-radius: 50%; background: var(--mint); }
.p-icon--yandex { border-radius: 3px; background: var(--orange); }
.p-icon--github { border-radius: 50%; border: 3px solid var(--violet); }

.step-links { display: flex; justify-content: space-between; font-size: 12px; }
.link-back { color: var(--muted); cursor: pointer; }
.link-back:hover { color: var(--ink); }
.link-resend { color: var(--muted); cursor: default; }
.link-resend.is-ready { color: var(--link); cursor: pointer; }

.done {
  background: var(--mint-tint);
  border-radius: 36px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.done-head { display: flex; justify-content: space-between; align-items: center; }
.done-circle { width: 56px; height: 56px; border-radius: 999px; background: var(--mint); }
.done-label { font-size: 12px; color: var(--mint-deep); }
.done-row { display: flex; justify-content: space-between; align-items: flex-end; }
.done-contact { font-size: 14px; color: var(--mint-ink); line-height: 1.5; }
.done-contact-sub { font-size: 12px; opacity: .7; }
.done-sum {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}
.done-actions { display: flex; gap: 8px; }
.done-primary {
  flex: 1;
  padding: 16px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.done-primary:hover { background: var(--mint); color: var(--ink); }
.done-secondary {
  flex: 1;
  padding: 16px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  text-align: center;
}
.done-secondary:hover { background: var(--ink); color: var(--white); }

.legal { font-size: 11px; color: var(--muted); line-height: 1.6; }
.legal a { color: var(--muted); }
.legal a:hover { color: var(--ink); }

.err {
  border: 1.5px solid var(--red);
  color: var(--red);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 12px;
  line-height: 1.4;
  background: var(--white);
}
