:root {
  --auth-ink: #182327;
  --auth-muted: #657277;
  --auth-brand: #03a96f;
  --auth-line: #dce6e2;
  --auth-page: #f3f8f5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 15% 5%, rgb(3 192 127 / 12%), transparent 30rem),
    var(--auth-page);
  color: var(--auth-ink);
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-shell {
  width: min(100% - 32px, 520px);
  margin: 0 auto;
  padding: clamp(32px, 8vh, 88px) 0 48px;
}

.auth-brand {
  display: inline-block;
  margin: 0 0 22px;
  color: var(--auth-ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.04em;
  text-decoration: none;
}

.auth-brand span { color: var(--auth-brand); }

.auth-card {
  padding: clamp(26px, 6vw, 44px);
  border: 1px solid var(--auth-line);
  border-radius: 24px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 26px 70px rgb(24 35 39 / 10%);
}

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

.auth-card h1 {
  margin: 0;
  font-size: clamp(32px, 8vw, 48px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.auth-lead { margin: 18px 0 0; color: var(--auth-muted); }
.auth-actions { display: grid; gap: 12px; margin-top: 30px; }

.auth-button {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.auth-button:hover { transform: translateY(-1px); }
.auth-button:focus-visible { outline: 3px solid rgb(3 169 111 / 28%); outline-offset: 3px; }
.auth-button:disabled { cursor: wait; opacity: .68; transform: none; }
.auth-button--telegram { background: #229ed9; color: #fff; box-shadow: 0 10px 24px rgb(24 35 39 / 14%); }
.auth-button--telegram:hover { background: #168dcc; }
.auth-button--secondary { border-color: var(--auth-line); background: #fff; color: var(--auth-ink); }
.auth-button--secondary:hover { background: #f8fbfa; }

.auth-provider-mark {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 18%);
  font-size: 14px;
}

.auth-provider-mark--yandex { background: #fc3f1d; color: #fff; font-weight: 800; }
.auth-status { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: #eaf7f2; color: #245444; }
.auth-status[data-state="error"] { background: #fff0ed; color: #8f2c1e; }
.auth-note { margin: 22px 0 0; color: var(--auth-muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) { .auth-button { transition: none; } }
