@font-face {
  font-family: "Onest";
  src: url("/fonts/onest-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: #26283a;
  background:
    radial-gradient(circle at 12% 16%, rgba(191, 218, 255, .82), transparent 34%),
    radial-gradient(circle at 94% 84%, rgba(215, 199, 255, .66), transparent 31%),
    #eef1fa;
  font-family: "Inter", Arial, sans-serif;
}

button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(91, 100, 217, .28); outline-offset: 3px; }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(430px, .82fr);
  width: calc(100% - 32px);
  min-height: calc(100vh - 32px);
  margin: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 34px;
  background: rgba(248, 249, 255, .7);
  box-shadow: 0 40px 120px rgba(63, 69, 115, .17);
}

.auth-story {
  position: relative;
  display: flex;
  min-height: 690px;
  flex-direction: column;
  padding: 42px clamp(36px, 5vw, 82px) 64px;
  background:
    linear-gradient(140deg, rgba(218, 233, 255, .96), rgba(239, 231, 255, .93) 58%, rgba(255, 222, 208, .9));
}

.auth-story::after {
  position: absolute;
  right: -68px;
  bottom: -88px;
  width: 310px;
  height: 310px;
  border: 78px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  content: "";
}

.auth-brand { display: flex; align-items: center; gap: 11px; color: inherit; font-family: "Onest", sans-serif; font-size: 18px; font-weight: 720; text-decoration: none; }
.auth-brand svg { width: 34px; height: 34px; fill: currentColor; }
.auth-story__copy { position: relative; z-index: 1; width: min(720px, 100%); margin: auto 0; }
.auth-story__copy > p, .auth-eyebrow { margin: 0 0 14px; color: #655d79; font-size: 12px; font-weight: 780; letter-spacing: .14em; text-transform: uppercase; }
.auth-story h1 { margin: 0; font-family: "Onest", sans-serif; font-size: clamp(48px, 5.2vw, 86px); font-weight: 760; line-height: .98; letter-spacing: -.065em; }

.auth-sequence { display: grid; width: min(660px, 100%); gap: 12px; margin-top: 58px; }
.auth-sequence__item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 19px 24px;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 23px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 16px 38px rgba(74, 72, 112, .09);
  backdrop-filter: blur(12px);
}
.auth-sequence__item--lilac { margin-left: 34px; background: rgba(240, 233, 255, .85); }
.auth-sequence__item--mint { margin-left: 68px; background: rgba(226, 248, 239, .9); }
.auth-sequence__item > span { font-family: "Onest", sans-serif; font-size: 22px; font-weight: 720; letter-spacing: -.04em; }
.auth-sequence__item strong { display: block; font-size: 16px; }
.auth-sequence__item p { margin: 3px 0 0; color: #696a78; font-size: 14px; line-height: 1.45; }

.auth-panel { display: grid; place-items: center; padding: 56px clamp(34px, 5vw, 80px); background: rgba(255, 255, 255, .9); }
.auth-panel__inner { width: min(430px, 100%); }
.auth-eyebrow { color: #6c67b5; }
.auth-panel h2 { margin: 0; font-family: "Onest", sans-serif; font-size: clamp(36px, 3.3vw, 54px); font-weight: 730; line-height: 1.04; letter-spacing: -.055em; }
.auth-lead { margin: 16px 0 36px; color: #727487; font-size: 16px; line-height: 1.55; }
.auth-form { display: grid; gap: 18px; }
.auth-form label { display: grid; gap: 9px; }
.auth-form label > span { color: #5f6172; font-size: 14px; font-weight: 680; }
.auth-form input {
  width: 100%;
  height: 60px;
  padding: 0 19px;
  border: 1px solid #dfe1ec;
  border-radius: 18px;
  color: #252738;
  background: #f8f9fd;
  font-family: "Onest", sans-serif;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: .08em;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.auth-form input:focus { border-color: #7a80df; background: #fff; box-shadow: 0 0 0 5px rgba(122, 128, 223, .1); outline: 0; }
.auth-form > button {
  display: flex;
  height: 60px;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding: 0 20px 0 23px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: #5b64d9;
  box-shadow: 0 16px 30px rgba(91, 100, 217, .25);
  font-weight: 730;
  transition: transform 150ms ease, opacity 150ms ease;
}
.auth-form > button:hover { transform: translateY(-2px); }
.auth-form > button:disabled { cursor: wait; opacity: .62; transform: none; }
.auth-form > button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.auth-error { margin: -4px 0 0; padding: 13px 15px; border-radius: 14px; color: #a23e54; background: #ffe7ec; font-size: 14px; line-height: 1.4; }
.auth-accounts { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; color: #878898; font-size: 13px; }
.auth-accounts div { display: flex; gap: 6px; }
.auth-accounts button { padding: 7px 10px; border: 0; border-radius: 10px; color: #55576a; background: #f0f1f7; font-size: 12px; font-weight: 700; }
.auth-accounts button:hover { color: #4f57c8; background: #e8eaff; }

@media (max-width: 940px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { min-height: auto; padding-bottom: 44px; }
  .auth-story__copy { margin-top: 80px; }
  .auth-story h1 { font-size: clamp(44px, 10vw, 68px); }
  .auth-sequence { margin-top: 38px; }
  .auth-panel { padding-block: 64px; }
}

@media (max-width: 560px) {
  .auth-shell { width: calc(100% - 16px); min-height: calc(100vh - 16px); margin: 8px; border-radius: 24px; }
  .auth-story { min-height: 420px; padding: 28px 22px 34px; }
  .auth-story__copy { margin-top: 54px; }
  .auth-story h1 { font-size: 42px; }
  .auth-sequence__item { grid-template-columns: 58px 1fr; padding: 15px; }
  .auth-sequence__item--lilac, .auth-sequence__item--mint { margin-left: 0; }
  .auth-sequence__item > span { font-size: 18px; }
  .auth-sequence__item p { display: none; }
  .auth-panel { padding: 50px 22px; }
  .auth-accounts { align-items: flex-start; flex-direction: column; }
}

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