/* Вход, регистрация по приглашению — в стиле сайта (apps/fintech-sell-site). */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(fonts/onest-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(fonts/onest-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(fonts/onest-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #070707;
  --bg-1: #0e0e0e;
  --line: #1f1f1f;
  --line-2: #2e2e2e;
  --text: #f1f1f1;
  --text-2: #9a9a9a;
  --text-3: #5e5e5e;
  --hot: #ff5a24;
  --white: #f5f5f5;
  --wrap: 1320px;
  --gutter: 40px;
  color-scheme: dark;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, p { margin: 0; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.brand i { width: 10px; height: 10px; background: var(--hot); flex: none; }
.back { font-size: 15px; color: var(--text-2); transition: color 0.15s ease; }
.back:hover { color: var(--text); }

.auth-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 96px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 96px;
}

h1 { font-size: clamp(40px, 4.6vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -0.045em; }
h1.long { font-size: clamp(34px, 3.5vw, 50px); }
.sub { margin-top: 18px; font-size: 17px; color: var(--text-2); }

.note { margin-top: 24px; font-size: 15px; color: var(--text); }
.note-error { color: var(--hot); }
.note-warning { color: var(--text-2); }

.auth-form { margin-top: 40px; display: grid; gap: 18px; }
.field span { display: block; margin-bottom: 8px; font-size: 14px; color: var(--text-2); }
.field input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.15s ease;
}
.field input:hover { border-color: #3d3d3d; }
.field input:focus { outline: none; border-color: var(--text-2); }
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 100px var(--bg-1) inset;
  caret-color: var(--text);
}

.check { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text-2); cursor: pointer; user-select: none; }
.check input {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 20px;
  height: 20px;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: var(--bg);
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.check input::after {
  content: "";
  width: 10px;
  height: 6px;
  margin-top: -2px;
  border: 2px solid #070707;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) scale(0.6);
  opacity: 0;
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.check input:checked { background: var(--white); border-color: var(--white); }
.check input:checked::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.check:hover input { border-color: #3d3d3d; }
.check:hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 56px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { margin-top: 8px; background: var(--white); color: #070707; }
.btn-primary:hover { background: #d6d6d6; }
.btn-ghost { border-color: #333; color: var(--text); font-weight: 500; }
.btn-ghost:hover { border-color: #555; }

.auth-art canvas { display: block; width: 100%; height: auto; }

@media (max-width: 1024px) {
  :root { --gutter: 28px; }
  .auth-grid { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 48px; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .top .wrap { height: 60px; }
  .brand { font-size: 16px; }
  .auth-grid { display: block; padding-top: 40px; padding-bottom: 48px; }
  .auth-main { max-width: 440px; }
  .auth-art { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  @view-transition { navigation: none; }
}
