:root {
  color-scheme: light;
  --auth-bg: #eef3fa;
  --auth-surface: #ffffff;
  --auth-surface-soft: #f7f9fc;
  --auth-ink: #142033;
  --auth-muted: #5e6b80;
  --auth-border: #dce5f0;
  --auth-border-strong: #c5d2e3;
  --auth-blue: #174fbf;
  --auth-blue-hover: #103f9f;
  --auth-blue-soft: #e9f0ff;
  --auth-teal: #149b96;
  --auth-navy: #0d1726;
  --auth-navy-soft: #15243b;
  --auth-success: #176b4b;
  --auth-success-bg: #eaf8f1;
  --auth-error: #b42336;
  --auth-error-bg: #fff0f2;
  --auth-warn: #8a4b00;
  --auth-warn-bg: #fff7e8;
  --auth-shadow: 0 28px 80px rgba(22, 43, 78, 0.16), 0 4px 16px rgba(22, 43, 78, 0.06);
  --auth-shadow-soft: 0 18px 48px rgba(4, 14, 33, 0.18);
  --auth-radius-lg: 28px;
  --auth-radius-md: 16px;
  --auth-radius-sm: 12px;
  --auth-pointer-x: 50vw;
  --auth-pointer-y: 20vh;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--auth-bg);
}

body.auth-page {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at var(--auth-pointer-x) var(--auth-pointer-y), rgba(40, 100, 224, 0.12), transparent 28rem),
    linear-gradient(145deg, #f6f9fd 0%, var(--auth-bg) 52%, #e8eef8 100%);
  color: var(--auth-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.auth-page::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(23, 79, 191, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 79, 191, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 84%);
  mask-image: linear-gradient(to bottom, black, transparent 84%);
  pointer-events: none;
}

button,
input,
a {
  font: inherit;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.auth-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--auth-navy);
  color: #fff;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.auth-skip-link:focus {
  transform: translateY(0);
}

.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.auth-backdrop__orb {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.25;
  animation: auth-orbit 18s ease-in-out infinite alternate;
}

.auth-backdrop__orb--one {
  top: -18rem;
  right: -9rem;
  background: radial-gradient(circle, #8fb3ff, transparent 68%);
}

.auth-backdrop__orb--two {
  bottom: -20rem;
  left: -12rem;
  background: radial-gradient(circle, #66d6cf, transparent 68%);
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}

.auth-app {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.auth-header,
.auth-layout,
.auth-footer {
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
}

.auth-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

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

.auth-brand__mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 13px;
  background: linear-gradient(145deg, #2a68e5, #174fbf 62%, #103f9f);
  box-shadow: 0 10px 26px rgba(23, 79, 191, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.auth-brand__mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.auth-brand__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.auth-brand__copy strong {
  overflow: hidden;
  color: var(--auth-ink);
  font-size: 0.98rem;
  font-weight: 850;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-brand__copy small {
  overflow: hidden;
  color: var(--auth-muted);
  font-size: 0.74rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.auth-language {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(197, 210, 227, 0.84);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(22, 43, 78, 0.06);
  backdrop-filter: blur(16px);
}

.auth-language__button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #536279;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

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

.auth-language__button.is-active {
  background: #fff;
  color: var(--auth-blue);
  box-shadow: 0 4px 14px rgba(22, 43, 78, 0.12);
}

.auth-header__link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid var(--auth-border-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--auth-blue);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.auth-header__link:hover {
  border-color: #9db7e9;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 79, 191, 0.12);
  transform: translateY(-1px);
}

.auth-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(430px, 1.08fr) minmax(420px, 0.92fr);
  grid-template-areas: "story form";
  align-items: stretch;
  gap: 22px;
  padding-block: 14px 24px;
}

.auth-card,
.auth-story {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--auth-radius-lg);
}

.auth-card {
  grid-area: form;
  align-self: center;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(20px);
}

.auth-card::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--auth-blue), #4c7ce0 54%, var(--auth-teal));
  content: "";
}

.auth-card__header {
  display: grid;
  gap: 10px;
}

.auth-card__security {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #cae8dc;
  border-radius: 999px;
  background: #f0fbf7;
  color: var(--auth-success);
  font-size: 0.74rem;
  font-weight: 800;
}

.auth-card__security svg {
  width: 14px;
  height: 14px;
}

.auth-eyebrow {
  margin: 4px 0 0;
  color: var(--auth-blue);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.auth-card h1 {
  margin: 0;
  color: var(--auth-ink);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.auth-card__intro {
  max-width: 38rem;
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.auth-form--register {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.auth-field--wide,
.auth-form__actions,
.auth-form__trust,
.auth-form__alternate,
.auth-message {
  grid-column: 1 / -1;
}

.auth-field__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.auth-field label {
  color: #344257;
  font-size: 0.84rem;
  font-weight: 800;
}

.auth-field__optional {
  color: #66758b;
  font-size: 0.72rem;
  font-weight: 650;
}

.auth-input {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.auth-input__icon {
  position: absolute;
  left: 15px;
  z-index: 1;
  width: 19px;
  height: 19px;
  color: #718099;
  pointer-events: none;
  transition: color 160ms ease;
}

.auth-input input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 12px 48px 12px 46px;
  border: 1px solid var(--auth-border-strong);
  border-radius: var(--auth-radius-sm);
  outline: none;
  background: #fff;
  color: var(--auth-ink);
  font-size: 0.96rem;
  line-height: 1.3;
  box-shadow: 0 1px 2px rgba(22, 43, 78, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-input input::placeholder {
  color: #66758b;
  opacity: 1;
}

.auth-input input:hover {
  border-color: #aebdd0;
}

.auth-input:focus-within input {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 4px rgba(23, 79, 191, 0.12), 0 8px 22px rgba(23, 79, 191, 0.08);
}

.auth-input:focus-within .auth-input__icon {
  color: var(--auth-blue);
}

.auth-input input:-webkit-autofill,
.auth-input input:-webkit-autofill:hover,
.auth-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--auth-ink);
  box-shadow: 0 0 0 1000px #f5f8ff inset;
  transition: background-color 9999s ease-out;
}

.auth-field--invalid .auth-input input,
.auth-input input[aria-invalid="true"] {
  border-color: var(--auth-error);
  box-shadow: 0 0 0 4px rgba(180, 35, 54, 0.1);
}

.auth-field__hint {
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.auth-token-toggle {
  position: absolute;
  right: 4px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #66758b;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.auth-token-toggle:hover,
.auth-token-toggle.is-visible {
  background: var(--auth-blue-soft);
  color: var(--auth-blue);
}

.auth-token-toggle svg {
  width: 20px;
  height: 20px;
}

.auth-token-toggle .auth-icon-eye-off,
.auth-token-toggle.is-visible .auth-icon-eye {
  display: none;
}

.auth-token-toggle.is-visible .auth-icon-eye-off {
  display: block;
}

.auth-form__actions {
  display: grid;
  gap: 12px;
}

.auth-submit {
  position: relative;
  min-height: 54px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: linear-gradient(135deg, #1d5bd0, var(--auth-blue));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 850;
  box-shadow: 0 14px 30px rgba(23, 79, 191, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-submit::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.18), transparent 68%);
  content: "";
  transform: translateX(-110%);
  transition: transform 520ms ease;
}

.auth-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #174fbf, var(--auth-blue-hover));
  box-shadow: 0 18px 38px rgba(23, 79, 191, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.auth-submit:hover:not(:disabled)::before {
  transform: translateX(110%);
}

.auth-submit:active:not(:disabled) {
  transform: translateY(0);
}

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

.auth-submit__arrow {
  width: 18px;
  height: 18px;
  transition: transform 160ms ease;
}

.auth-submit:hover:not(:disabled) .auth-submit__arrow {
  transform: translateX(2px);
}

.auth-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 700ms linear infinite;
}

.auth-submit.is-busy .auth-spinner {
  display: block;
}

.auth-submit.is-busy .auth-submit__arrow {
  display: none;
}

.auth-form__trust {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: -2px 0 0;
  color: #66758b;
  font-size: 0.76rem;
  line-height: 1.5;
}

.auth-form__trust svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  color: var(--auth-teal);
}

.auth-form__alternate {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 3px;
  color: var(--auth-muted);
  font-size: 0.84rem;
}

.auth-form__alternate a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  color: var(--auth-blue);
  font-weight: 850;
  text-decoration: none;
}

.auth-form__alternate a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-message {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.5;
}

.auth-message::before {
  flex: 0 0 auto;
  font-weight: 900;
  content: "•";
}

.auth-message--warn {
  border-color: #efd6a7;
  background: var(--auth-warn-bg);
  color: var(--auth-warn);
}

.auth-message--error {
  border-color: #f2c5cd;
  background: var(--auth-error-bg);
  color: var(--auth-error);
}

.auth-message--ok {
  border-color: #bfe5d3;
  background: var(--auth-success-bg);
  color: var(--auth-success);
}

.auth-success {
  min-height: 430px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  text-align: center;
  animation: auth-success 420ms ease both;
}

.auth-success__icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid #bce5d1;
  border-radius: 22px;
  background: linear-gradient(145deg, #f0fbf7, #dff6ec);
  color: var(--auth-success);
  box-shadow: 0 16px 36px rgba(23, 107, 75, 0.14);
}

.auth-success__icon svg {
  width: 34px;
  height: 34px;
}

.auth-success h2 {
  margin: 4px 0 0;
  color: var(--auth-ink);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
}

.auth-success p {
  max-width: 26rem;
  margin: 0;
  color: var(--auth-muted);
  line-height: 1.65;
}

.auth-success__actions {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.auth-success__link,
.auth-success__again {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 850;
  text-decoration: none;
}

.auth-success__link {
  background: var(--auth-blue);
  color: #fff;
}

.auth-success__again {
  border: 1px solid var(--auth-border-strong);
  background: #fff;
  color: var(--auth-blue);
  cursor: pointer;
}

.auth-story {
  grid-area: story;
  min-height: 660px;
  display: grid;
  align-content: center;
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 86% 14%, rgba(60, 126, 247, 0.42), transparent 27%),
    radial-gradient(circle at 12% 88%, rgba(20, 155, 150, 0.26), transparent 31%),
    linear-gradient(145deg, #0b1628, var(--auth-navy) 54%, #101e33);
  color: #f4f7fc;
  box-shadow: var(--auth-shadow-soft);
}

.auth-story::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  -webkit-mask-image: linear-gradient(145deg, black, transparent 78%);
  mask-image: linear-gradient(145deg, black, transparent 78%);
  pointer-events: none;
}

.auth-story::after {
  position: absolute;
  top: -140px;
  right: -110px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(125, 164, 245, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(125, 164, 245, 0.035), 0 0 0 88px rgba(125, 164, 245, 0.025);
  content: "";
  pointer-events: none;
}

.auth-story__content {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 20px;
}

.auth-story__badge {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(132, 178, 255, 0.24);
  border-radius: 999px;
  background: rgba(43, 82, 143, 0.24);
  color: #cfe0ff;
  font-size: 0.75rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.auth-story__badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ed4cc;
  box-shadow: 0 0 0 5px rgba(94, 212, 204, 0.12);
  content: "";
}

.auth-story h2 {
  max-width: 670px;
  margin: 0;
  color: #f6f8fc;
  font-size: clamp(2.3rem, 4vw, 4.4rem);
  font-weight: 740;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.auth-story__lead {
  max-width: 640px;
  margin: -4px 0 0;
  color: #adbad0;
  font-size: clamp(0.96rem, 1.4vw, 1.08rem);
  line-height: 1.7;
}

.market-preview {
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: 6px;
  padding: 18px;
  border: 1px solid rgba(173, 199, 245, 0.18);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(26, 43, 69, 0.86), rgba(17, 31, 51, 0.78));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.market-preview__header,
.market-preview__signal,
.setup-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.market-preview__title {
  display: grid;
  gap: 3px;
}

.market-preview__title strong,
.setup-preview__header strong {
  color: #f2f6fd;
  font-size: 0.88rem;
}

.market-preview__title span {
  color: #8495b1;
  font-size: 0.7rem;
}

.market-preview__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a9e6df;
  font-size: 0.7rem;
  font-weight: 800;
}

.market-preview__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4fd0c7;
  box-shadow: 0 0 0 5px rgba(79, 208, 199, 0.11);
  animation: auth-pulse 2.4s ease-in-out infinite;
}

.market-preview__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.market-preview__metric {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(173, 199, 245, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.market-preview__metric span {
  display: block;
  color: #8192ad;
  font-size: 0.62rem;
  line-height: 1.3;
}

.market-preview__metric strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #eaf1fc;
  font-size: 0.78rem;
  line-height: 1.25;
}

.market-preview__chart {
  width: 100%;
  height: 150px;
  display: block;
  overflow: visible;
}

.market-preview__grid line {
  stroke: rgba(173, 199, 245, 0.1);
  stroke-width: 1;
}

.market-preview__range {
  fill: url(#marketRangeGradient);
  opacity: 0.62;
}

.market-preview__line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: auth-chart-draw 1.4s 220ms ease-out forwards;
}

.market-preview__line--target {
  stroke: #6e9dff;
}

.market-preview__line--market {
  stroke: #4fd0c7;
  stroke-width: 2.5;
  animation-delay: 420ms;
}

.market-preview__point {
  fill: #f4a45b;
  stroke: #fff;
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(244, 164, 91, 0.6));
}

.market-preview__signal {
  padding-top: 14px;
  border-top: 1px solid rgba(173, 199, 245, 0.12);
}

.market-preview__signal-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.market-preview__signal-copy span {
  color: #f2a861;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-preview__signal-copy strong {
  color: #f1f5fb;
  font-size: 0.82rem;
}

.market-preview__signal-copy small {
  color: #8393ad;
  font-size: 0.68rem;
}

.market-preview__signal-link {
  flex: 0 0 auto;
  color: #a9c6ff;
  font-size: 0.72rem;
  font-weight: 800;
}

.auth-benefits {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-benefits li {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(173, 199, 245, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #aebbd0;
  font-size: 0.7rem;
  font-weight: 700;
}

.auth-benefits svg {
  width: 14px;
  height: 14px;
  color: #58d0c8;
}

.setup-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.setup-step {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(173, 199, 245, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.setup-step:not(:last-child)::after {
  position: absolute;
  top: 27px;
  right: -11px;
  z-index: 2;
  width: 12px;
  height: 1px;
  background: rgba(112, 155, 233, 0.45);
  content: "";
}

.setup-step__number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(117, 164, 245, 0.35);
  border-radius: 9px;
  background: rgba(40, 91, 180, 0.28);
  color: #cfe0ff;
  font-size: 0.7rem;
  font-weight: 900;
}

.setup-step strong {
  color: #edf3fc;
  font-size: 0.78rem;
}

.setup-step small {
  color: #8292ac;
  font-size: 0.68rem;
  line-height: 1.35;
}

.setup-preview {
  display: grid;
  gap: 14px;
  padding: 17px;
  border: 1px solid rgba(173, 199, 245, 0.16);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(26, 43, 69, 0.84), rgba(17, 31, 51, 0.76));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.18);
}

.setup-preview__dots {
  display: inline-flex;
  gap: 4px;
}

.setup-preview__dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #50617c;
}

.setup-preview__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-preview__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(173, 199, 245, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: #aebbd0;
  font-size: 0.73rem;
  font-weight: 700;
}

.setup-preview__list svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #56cec6;
}

.auth-footer {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 12px 18px;
  color: var(--auth-muted);
  font-size: 0.72rem;
}

.auth-footer__secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-footer__secure svg {
  width: 14px;
  height: 14px;
  color: var(--auth-success);
}

.auth-ready .auth-card {
  animation: auth-enter-right 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-ready .auth-story {
  animation: auth-enter-left 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

:where(a, button, input):focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.auth-input input:focus-visible {
  outline: none;
}

@keyframes auth-orbit {
  from { transform: translate3d(-2%, -2%, 0) scale(0.96); }
  to { transform: translate3d(4%, 3%, 0) scale(1.05); }
}

@keyframes auth-enter-left {
  from { opacity: 0; transform: translate3d(-18px, 8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes auth-enter-right {
  from { opacity: 0; transform: translate3d(18px, 8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes auth-chart-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes auth-pulse {
  0%, 100% { opacity: 0.7; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

@keyframes auth-success {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1080px) {
  .auth-header,
  .auth-layout,
  .auth-footer {
    width: min(100% - 36px, 1040px);
  }

  .auth-layout {
    grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
    gap: 16px;
  }

  .auth-story {
    padding: 38px;
  }

  .auth-story h2 {
    font-size: clamp(2.2rem, 4.4vw, 3.3rem);
  }

  .market-preview__metrics {
    grid-template-columns: 1fr;
  }

  .market-preview__metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .market-preview__metric strong {
    margin-top: 0;
    text-align: right;
  }
}

@media (max-width: 880px) {
  .auth-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "form" "story";
    align-items: start;
  }

  .auth-card {
    width: min(600px, 100%);
    justify-self: center;
  }

  .auth-story {
    width: min(760px, 100%);
    min-height: auto;
    justify-self: center;
    padding: 38px;
  }

  .auth-story h2 {
    max-width: 620px;
  }

  .market-preview__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-preview__metric {
    display: block;
  }

  .market-preview__metric strong {
    margin-top: 5px;
    text-align: left;
  }
}

@media (max-width: 640px) {
  body.auth-page {
    background:
      radial-gradient(circle at 50% -5%, rgba(40, 100, 224, 0.14), transparent 24rem),
      var(--auth-bg);
  }

  body.auth-page::before {
    opacity: 0.55;
  }

  .auth-header,
  .auth-layout,
  .auth-footer {
    width: calc(100% - 24px);
  }

  .auth-header {
    min-height: 72px;
    gap: 12px;
    padding-block: 11px;
  }

  .auth-brand {
    gap: 9px;
  }

  .auth-brand__mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
  }

  .auth-brand__mark img {
    width: 27px;
    height: 27px;
  }

  .auth-brand__copy strong {
    max-width: 150px;
    font-size: 0.9rem;
  }

  .auth-brand__copy small {
    display: none;
  }

  .auth-header__link {
    display: none;
  }

  .auth-language {
    min-height: 52px;
    border-radius: 12px;
  }

  .auth-language__button {
    min-width: 44px;
    min-height: 44px;
    padding-inline: 8px;
  }

  .auth-layout {
    gap: 14px;
    padding-block: 4px 16px;
  }

  .auth-card {
    padding: 26px 22px;
    border-radius: 22px;
  }

  .auth-card h1 {
    font-size: clamp(1.9rem, 9vw, 2.4rem);
  }

  .auth-form,
  .auth-form--register {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  .auth-field--wide,
  .auth-form__actions,
  .auth-form__trust,
  .auth-form__alternate,
  .auth-message {
    grid-column: auto;
  }

  .auth-story {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .auth-story h2 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .auth-story__lead {
    font-size: 0.9rem;
  }

  .market-preview,
  .setup-preview {
    display: none;
  }

  .auth-benefits {
    display: grid;
    gap: 7px;
  }

  .auth-benefits li {
    width: 100%;
    border-radius: 11px;
  }

  .setup-flow {
    grid-template-columns: 1fr;
  }

  .setup-step {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 3px 10px;
    padding: 11px;
  }

  .setup-step__number {
    grid-row: 1 / 3;
  }

  .setup-step:not(:last-child)::after {
    display: none;
  }

  .auth-footer {
    min-height: 52px;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding-block: 8px 14px;
  }
}

@media (max-width: 360px) {
  .auth-header,
  .auth-layout,
  .auth-footer {
    width: calc(100% - 20px);
  }

  .auth-brand__copy {
    display: none;
  }

  .auth-language__button {
    min-width: 44px;
    padding-inline: 6px;
  }

  .auth-card {
    padding: 24px 16px;
  }

  .auth-card__security {
    font-size: 0.7rem;
  }

  .auth-input input {
    padding-left: 43px;
  }

  .auth-form__alternate {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .auth-form__alternate a {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .market-preview__line {
    stroke-dashoffset: 0;
  }
}

@media (prefers-contrast: more) {
  :root {
    --auth-border: #8491a3;
    --auth-border-strong: #64748b;
    --auth-muted: #3e4a5d;
  }

  .auth-card,
  .auth-input input,
  .auth-language,
  .auth-header__link {
    border-width: 2px;
  }
}

@media (forced-colors: active) {
  body.auth-page,
  .auth-story,
  .auth-card,
  .market-preview,
  .setup-preview,
  .auth-language,
  .auth-header__link,
  .auth-submit {
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
    forced-color-adjust: auto;
  }

  .auth-story *,
  .auth-submit,
  .auth-card__security,
  .auth-eyebrow {
    color: CanvasText;
  }

  :where(a, button, input):focus-visible {
    outline: 3px solid Highlight;
  }

  .auth-backdrop,
  .auth-story::before,
  .auth-story::after,
  body.auth-page::before {
    display: none;
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .auth-card,
  .auth-language {
    background: #fff;
  }
}
