:root {
  color-scheme: dark;
  --bg: #000;
  --card: #1b2028;
  --card-deep: #11151b;
  --input: #050607;
  --border: #343a44;
  --text: #f4f7fa;
  --muted: #8c95a3;
  --green: #38f2b5;
  --cyan: #00d9d0;
  --blue: #168cff;
  --red: #ff5b63;
  --yellow: #f5bd43;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #050608;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(0, 214, 183, 0.1), transparent 28rem),
    #050608;
  color: var(--text);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.splash-mode {
  background: #000;
}

body.splash-mode .tech-background,
body.splash-mode .stage-visuals,
body.splash-mode .ambient {
  opacity: 0;
}

body.splash-mode .app-stage {
  background: #000;
  box-shadow: none;
}

.tech-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.tech-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.tech-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 242, 181, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 242, 181, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  opacity: 0.4;
}

.probability-formula {
  position: absolute;
  color: rgba(116, 241, 202, 0.12);
  font-family: "Cambria Math", "Times New Roman", serif;
  letter-spacing: 0.04em;
  text-shadow: 0 0 14px rgba(56, 242, 181, 0.1);
  animation: formulaBreathe 5.8s ease-in-out infinite;
}

.formula-one {
  top: 17%;
  left: max(4vw, calc(50% - 36rem));
  font-size: 25px;
}

.formula-two {
  top: 27%;
  right: max(6vw, calc(50% - 36rem));
  font-size: 17px;
  animation-delay: -1.4s;
}

.formula-three {
  top: 64%;
  left: max(7vw, calc(50% - 34rem));
  font-size: 15px;
  animation-delay: -2.7s;
}

.formula-four {
  right: max(4vw, calc(50% - 35rem));
  bottom: 20%;
  font-size: 22px;
  animation-delay: -3.6s;
}

.formula-five {
  top: 12%;
  right: max(10vw, calc(50% - 28rem));
  font-size: 13px;
  animation-delay: -0.8s;
}

.formula-six {
  bottom: 13%;
  left: max(12vw, calc(50% - 27rem));
  font-size: 13px;
  animation-delay: -4.2s;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.11;
  pointer-events: none;
}

.ambient-one {
  top: 8%;
  left: calc(50% - 34rem);
  background: #00e6a8;
}

.ambient-two {
  right: calc(50% - 35rem);
  bottom: 0;
  background: #168cff;
}

.app-stage {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.93));
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.75);
}

.stage-visuals {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.corner-visual {
  position: absolute;
  top: 20px;
  width: 104px;
  height: 122px;
  color: rgba(56, 242, 181, 0.2);
  animation: decorFloat 5.4s ease-in-out infinite;
}

.corner-visual-left {
  left: -5px;
}

.corner-visual-right {
  right: -5px;
  animation-delay: -2.1s;
}

.corner-formula {
  position: absolute;
  color: rgba(132, 244, 210, 0.24);
  font-family: "Cambria Math", "Times New Roman", serif;
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(56, 242, 181, 0.08);
}

.corner-formula-primary {
  top: 26px;
  left: 10px;
  font-size: 17px;
}

.corner-formula-secondary {
  top: 73px;
  left: 49px;
  font-size: 10px;
  opacity: 0.72;
  transform: rotate(-5deg);
}

.corner-visual-right .corner-formula-primary {
  top: 53px;
  right: 13px;
  left: auto;
  font-size: 19px;
  transform: rotate(5deg);
}

.decor-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(56, 242, 181, 0.27);
  box-shadow: 0 0 7px rgba(56, 242, 181, 0.18);
  animation: particlePulse 3.4s ease-in-out infinite;
}

.dot-a {
  top: 46px;
  left: 74px;
}

.dot-b {
  top: 91px;
  left: 18px;
  animation-delay: -1.1s;
}

.dot-c {
  top: 20px;
  left: 50px;
  animation-delay: -2.3s;
}

.bottom-visual {
  position: absolute;
  bottom: 80px;
  left: 50%;
  width: min(280px, 74%);
  height: 92px;
  color: rgba(56, 242, 181, 0.14);
  opacity: 0.48;
  transform: translateX(-50%);
  animation: decorFloat 6.2s ease-in-out infinite;
}

.bottom-visual svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(56, 242, 181, 0.13);
  stroke-width: 1;
}

.bottom-visual .axis {
  stroke: rgba(173, 185, 202, 0.09);
}

.bottom-visual .probability-wave {
  stroke: rgba(56, 242, 181, 0.22);
  stroke-width: 1.3;
  filter: drop-shadow(0 0 5px rgba(56, 242, 181, 0.08));
}

.bottom-visual .quantile-lines {
  stroke-dasharray: 3 4;
  opacity: 0.32;
}

.bottom-visual circle {
  fill: rgba(56, 242, 181, 0.14);
  stroke: rgba(56, 242, 181, 0.27);
}

.bottom-label {
  position: absolute;
  right: 2px;
  bottom: 1px;
  color: rgba(173, 185, 202, 0.16);
  font-family: "Cambria Math", "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.bottom-node {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(56, 242, 181, 0.23);
  box-shadow: 0 0 6px rgba(56, 242, 181, 0.16);
  animation: particlePulse 3.6s ease-in-out infinite;
}

.node-one {
  top: 17px;
  left: 11px;
}

.node-two {
  top: 46px;
  right: 8px;
  animation-delay: -1.2s;
}

.node-three {
  bottom: 3px;
  left: 40%;
  animation-delay: -2.4s;
}

.screen {
  position: relative;
  z-index: 1;
  display: none;
  min-height: 100vh;
}

.screen.active {
  display: block;
}

#splashScreen.active {
  display: grid;
  place-items: center;
}

.splash-button {
  position: relative;
  display: grid;
  width: 220px;
  height: 220px;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.logo {
  display: block;
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 13px rgba(0, 230, 168, 0.28));
}

.logo-splash {
  width: 92px;
  height: 92px;
  animation: splashIn 700ms cubic-bezier(0.2, 0.8, 0.2, 1), breathe 2.4s ease-in-out 750ms infinite;
}

.logo-particles {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  width: 100%;
  height: 218px;
  pointer-events: none;
  transform: translateX(-50%);
}

.auth-particles {
  top: -12px;
}

.logo-auth,
.brand-header h1,
.brand-subtitle {
  position: relative;
  z-index: 1;
}

.logo-particle {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(56, 242, 181, 0.65);
  box-shadow: 0 0 5px rgba(56, 242, 181, 0.28);
  opacity: 0.4;
  animation:
    logoParticleDrift var(--duration) ease-in-out var(--delay) infinite alternate,
    logoParticleBlink 2.8s ease-in-out var(--delay) infinite;
}

.logo-particle.is-bright {
  background: #eafff8;
  box-shadow:
    0 0 3px rgba(255, 255, 255, 0.9),
    0 0 9px rgba(56, 242, 181, 0.8),
    0 0 18px rgba(56, 242, 181, 0.38);
  opacity: 0.9;
  animation-name: logoParticleDrift, logoParticleBrightBlink;
}

.particle-1 {
  --x: 7%;
  --y: 59%;
  --size: 2px;
  --dx: 6px;
  --dy: -5px;
  --duration: 4.2s;
  --delay: -0.4s;
}

.particle-2 {
  --x: 78%;
  --y: 28%;
  --size: 4.5px;
  --dx: -7px;
  --dy: 5px;
  --duration: 5.1s;
  --delay: -1.8s;
}

.particle-3 {
  --x: 66%;
  --y: 81%;
  --size: 2px;
  --dx: 4px;
  --dy: -7px;
  --duration: 4.8s;
  --delay: -2.7s;
}

.particle-4 {
  --x: 22%;
  --y: 77%;
  --size: 3px;
  --dx: 7px;
  --dy: -3px;
  --duration: 5.5s;
  --delay: -3.2s;
}

.particle-5 {
  --x: 36%;
  --y: 14%;
  --size: 1.5px;
  --dx: -3px;
  --dy: 7px;
  --duration: 3.9s;
  --delay: -1.1s;
}

.particle-6 {
  --x: 56%;
  --y: 7%;
  --size: 2.5px;
  --dx: 5px;
  --dy: 6px;
  --duration: 4.6s;
  --delay: -2.2s;
}

.particle-7 {
  --x: 91%;
  --y: 66%;
  --size: 3px;
  --dx: -5px;
  --dy: -6px;
  --duration: 5.8s;
  --delay: -0.8s;
}

.particle-8 {
  --x: 2%;
  --y: 34%;
  --size: 1.5px;
  --dx: 5px;
  --dy: 4px;
  --duration: 4.4s;
  --delay: -3.6s;
}

.particle-9 {
  --x: 47%;
  --y: 92%;
  --size: 2px;
  --dx: -4px;
  --dy: -5px;
  --duration: 5.2s;
  --delay: -1.5s;
}

.particle-10 {
  --x: 13%;
  --y: 17%;
  --size: 2.2px;
  --dx: 5px;
  --dy: 6px;
  --duration: 6.1s;
  --delay: -2.8s;
}

.particle-11 {
  --x: 84%;
  --y: 89%;
  --size: 1.6px;
  --dx: -5px;
  --dy: -4px;
  --duration: 4.7s;
  --delay: -1.2s;
}

.particle-12 {
  --x: 28%;
  --y: 43%;
  --size: 1.4px;
  --dx: 4px;
  --dy: -6px;
  --duration: 5.4s;
  --delay: -3.7s;
}

.particle-13 {
  --x: 70%;
  --y: 53%;
  --size: 2.8px;
  --dx: -6px;
  --dy: 5px;
  --duration: 4.9s;
  --delay: -0.6s;
}

.auth-screen {
  display: none;
  min-height: 100vh;
  flex-direction: column;
  padding: max(28px, env(safe-area-inset-top)) 16px max(22px, env(safe-area-inset-bottom));
}

.auth-screen.active {
  display: flex;
}

.brand-header {
  position: relative;
  padding: 12px 0 22px;
  text-align: center;
}

.logo-auth {
  width: 68px;
  height: 68px;
  margin: 0 auto 8px;
}

.brand-header h1 {
  margin: 0;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-subtitle {
  margin: 7px 0 0;
  color: #adb9ca;
  font-size: 14px;
}

.auth-card {
  padding: 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 20px;
  background: linear-gradient(160deg, #1d232c 0%, #171b22 100%);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.42);
}

.auth-form h2 {
  margin: 0 0 17px;
  font-size: 15px;
  font-weight: 600;
}

.field-label {
  display: block;
  margin: 14px 0 8px;
  color: #d4d9e1;
  font-size: 13px;
}

.label-note {
  color: #727c8a;
  font-size: 10px;
}

.input-shell {
  display: flex;
  min-height: 48px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #030405;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-shell:focus-within {
  border-color: rgba(0, 230, 168, 0.66);
  box-shadow: 0 0 0 3px rgba(0, 230, 168, 0.08);
}

.field-icon {
  display: grid;
  width: 44px;
  flex: 0 0 44px;
  place-items: center;
  color: #d7dce3;
}

.field-icon svg,
.icon-button svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.input-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  padding: 13px 4px;
}

.input-shell input::placeholder {
  color: #6f7783;
}

.icon-button {
  display: grid;
  width: 46px;
  height: 44px;
  flex: 0 0 46px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #b7bec9;
  cursor: pointer;
}

.password-toggle.is-visible svg {
  color: var(--green);
}

.caps-warning {
  margin-top: 6px;
  color: var(--yellow);
  font-size: 11px;
}

.field-hint {
  display: block;
  margin-top: 7px;
  color: #7f8997;
  font-size: 10.5px;
  line-height: 1.5;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
}

.checkbox-line {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #939ba7;
  font-size: 11.5px;
  line-height: 1.5;
}

.checkbox-line input {
  display: grid;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 18px;
  appearance: none;
  place-items: center;
  border: 1.5px solid #565d67;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.checkbox-line input::before {
  width: 9px;
  height: 5px;
  border-bottom: 2px solid var(--green);
  border-left: 2px solid var(--green);
  content: "";
  opacity: 0;
  transform: translateY(-1px) rotate(-45deg) scale(0.65);
  transition: opacity 120ms ease, transform 120ms ease;
}

.checkbox-line input:checked {
  border-color: var(--green);
  background: rgba(56, 242, 181, 0.1);
}

.checkbox-line input:checked::before {
  opacity: 1;
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.checkbox-line input:checked + span {
  color: #fff;
}

.checkbox-line input:focus-visible {
  outline: 2px solid rgba(56, 242, 181, 0.35);
  outline-offset: 2px;
}

.checkbox-line.compact {
  align-items: center;
}

#loginForm .checkbox-line input,
#registerForm .checkbox-line input {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  margin-top: 0;
  border-radius: 4px;
}

#loginForm .checkbox-line input::before,
#registerForm .checkbox-line input::before {
  width: 7px;
  height: 4px;
  border-width: 0 0 1.5px 1.5px;
}

#loginForm .checkbox-line,
#registerForm .checkbox-line {
  align-items: center;
}

#loginForm .input-shell input::placeholder,
#registerForm .input-shell input::placeholder,
#resetForm .input-shell input::placeholder {
  font-size: 12px;
}

.terms-line {
  margin-top: 16px;
}

.text-button,
.inline-button {
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  padding: 0;
}

.agreement-link {
  display: inline;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: rgba(56, 242, 181, 0.5);
  text-underline-offset: 2px;
}

.text-button {
  font-size: 12px;
}

.primary-button {
  width: 100%;
  min-height: 51px;
  margin-top: 19px;
  border: 0;
  border-radius: 7px;
  border: 1px solid rgba(40, 205, 174, 0.34);
  background: linear-gradient(90deg, #0fc18c 0%, #1ec896 48%, #0064d4 100%);
  box-shadow: 0 8px 24px rgba(0, 117, 174, 0.17);
  color: #fff;
  cursor: pointer;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: transform 150ms ease, filter 150ms ease;
}

.primary-button:hover {
  filter: brightness(1.07);
}

.primary-button:active {
  transform: translateY(1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.switch-copy {
  margin: 18px 0 0;
  color: #8e97a3;
  font-size: 12px;
  text-align: center;
}

.inline-button {
  font-size: inherit;
}

.form-message {
  min-height: 18px;
  margin-top: 8px;
  color: var(--red);
  font-size: 11.5px;
  line-height: 1.45;
}

.form-message.success {
  color: var(--green);
}

.password-strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 8px;
}

.password-strength span {
  height: 3px;
  border-radius: 99px;
  background: #2e343d;
  transition: background 180ms ease;
}

.password-strength small {
  grid-column: 1 / -1;
  margin-top: 3px;
  color: #7f8997;
  font-size: 10.5px;
}

.password-strength[data-score="1"] span:nth-child(-n + 1) {
  background: var(--red);
}

.password-strength[data-score="2"] span:nth-child(-n + 2) {
  background: var(--yellow);
}

.password-strength[data-score="3"] span:nth-child(-n + 3) {
  background: #39c8c0;
}

.password-strength[data-score="4"] span {
  background: var(--green);
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 91px;
  gap: 10px;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 10px;
}

.captcha-image-button {
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0d1117;
  cursor: pointer;
}

.captcha-image-button:hover {
  border-color: rgba(0, 230, 168, 0.5);
}

.captcha-image-button canvas,
.captcha-image-button img {
  display: block;
  width: 100%;
  height: 100%;
}

.reset-dialog {
  width: min(460px, calc(100vw - 24px));
}

.reset-form {
  overflow-y: auto;
  padding: 6px 22px 22px;
}

.reset-form .field-label:first-child {
  margin-top: 0;
}

.reset-form .primary-button {
  margin-top: 18px;
}

.verification-button {
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  background: var(--green);
  color: #000;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.verification-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.58;
}

.auth-footer {
  margin-top: auto;
  padding: 24px 0 8px;
  color: #747d89;
  text-align: center;
}

.agreement-footer-link {
  border: 0;
  background: transparent;
  color: #adb9ca;
  cursor: pointer;
  font-size: 12px;
  padding: 4px;
}

.auth-footer p {
  margin: 7px 0 0;
  font-size: 10.5px;
}

.toast {
  position: fixed;
  z-index: 10;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 14px;
  border: 1px solid #39404a;
  border-radius: 9px;
  background: rgba(22, 27, 34, 0.96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  color: #e8edf3;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.agreement-dialog {
  width: min(390px, calc(100vw - 30px));
  max-height: min(680px, calc(100vh - 48px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #343b45;
  border-radius: 16px;
  background: #151a21;
  color: var(--text);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}

.agreement-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(5px);
}

.agreement-dialog-header {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #2b313a;
}

.agreement-kicker {
  color: var(--green);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.agreement-dialog-header h2 {
  margin: 4px 0 0;
  font-size: 17px;
}

.dialog-close {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid #343b45;
  border-radius: 50%;
  background: #0d1117;
  color: #aeb6c0;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.agreement-content {
  max-height: min(500px, calc(100vh - 210px));
  margin: 0;
  overflow-y: auto;
  padding: 4px 18px 17px;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.agreement-content::-webkit-scrollbar {
  display: none;
}

.agreement-content h3 {
  margin: 16px 0 7px;
  color: #e9eef4;
  font-size: 13px;
}

.agreement-content p {
  margin: 0 0 10px;
  color: #939daa;
  font-size: 12px;
  line-height: 1.75;
}

.agreement-dialog-actions {
  padding: 12px 18px 16px;
  border-top: 1px solid #2b313a;
}

.agreement-dialog-actions button {
  width: 100%;
  border: 1px solid var(--green);
  border-radius: 7px;
  background: var(--green);
  color: #000;
  cursor: pointer;
  font-weight: 500;
  padding: 11px;
}

@keyframes splashIn {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes breathe {
  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(0, 230, 168, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 24px rgba(0, 230, 168, 0.48));
  }
}

@keyframes formulaBreathe {
  0%,
  100% {
    opacity: 0.12;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes curveBreathe {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.62;
  }
}

@keyframes decorFloat {
  0%,
  100% {
    opacity: 0.34;
  }
  50% {
    opacity: 0.56;
  }
}

@keyframes particlePulse {
  0%,
  100% {
    opacity: 0.12;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.46;
    transform: scale(1.25);
  }
}

@keyframes logoParticleDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(var(--dx), var(--dy), 0);
  }
}

@keyframes logoParticleBlink {
  0%,
  100% {
    opacity: 0.22;
  }
  50% {
    opacity: 0.76;
  }
}

@keyframes logoParticleBrightBlink {
  0%,
  100% {
    opacity: 0.52;
    filter: brightness(0.9);
  }
  50% {
    opacity: 1;
    filter: brightness(1.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-splash,
  .probability-formula,
  .logo-particle {
    animation: none;
  }
}

@media (max-width: 760px) {
  .probability-formula {
    display: none;
  }

  .corner-visual {
    top: 16px;
    width: 88px;
    height: 106px;
  }

  .bottom-visual {
    bottom: 74px;
    width: 68%;
    opacity: 0.46;
  }

}

@media (max-width: 380px) {
  .auth-screen {
    padding-right: 11px;
    padding-left: 11px;
  }

  .auth-card {
    padding: 17px 14px;
  }

  .logo-auth {
    width: 59px;
    height: 59px;
  }

  .brand-header {
    padding-bottom: 17px;
  }

  .captcha-row {
    grid-template-columns: minmax(0, 1fr) 112px;
  }
}

/* Unified authentication visual language */

html,
body,
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.splash-button {
  width: 270px;
  height: 310px;
  align-content: center;
  gap: 14px;
}

.logo-splash {
  width: 92px;
  height: 92px;
}

.splash-wordmark {
  display: grid;
  gap: 5px;
  justify-items: center;
  animation: splashIn 700ms 90ms both;
}

.splash-wordmark strong {
  color: #f0faf6;
  font-size: 25px;
  font-weight: 620;
  letter-spacing: 0.16em;
}

.splash-wordmark small {
  color: #71827b;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.splash-loader {
  position: relative;
  width: 76px;
  height: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(56, 242, 181, 0.08);
  animation: splashIn 700ms 160ms both;
}

.splash-loader::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -42%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #38f2b5, transparent);
  content: "";
  animation: splashLoading 1.25s ease-in-out infinite;
}

.brand-header {
  padding: 8px 0 20px;
}

.logo-auth {
  width: 58px;
  height: 58px;
  margin-bottom: 7px;
}

.brand-header h1 {
  font-size: 24px;
  font-weight: 620;
  letter-spacing: 0.12em;
}

.brand-subtitle {
  margin-top: 6px;
  color: #8d9b96;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.auth-card {
  position: relative;
  overflow: hidden;
  padding: 19px 18px 18px;
  border: 1px solid rgba(158, 180, 201, 0.13);
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 242, 181, 0.055), transparent 12rem),
    linear-gradient(155deg, rgba(16, 24, 27, 0.98), rgba(7, 12, 14, 0.99));
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.38),
    inset 0 1px rgba(255, 255, 255, 0.025);
}

.auth-form h2 {
  margin-bottom: 15px;
  color: #edf3f0;
  font-size: 15px;
  font-weight: 570;
}

.field-label {
  margin: 13px 0 7px;
  color: #aebbb6;
  font-size: 12px;
  font-weight: 500;
}

.label-note {
  color: #6f7e78;
}

.input-shell {
  min-height: 46px;
  border-color: rgba(158, 180, 201, 0.14);
  border-radius: 10px;
  background: rgba(3, 9, 8, 0.82);
}

.input-shell:focus-within {
  border-color: rgba(56, 242, 181, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 242, 181, 0.055);
}

.field-icon {
  width: 42px;
  flex-basis: 42px;
  color: #7f8f89;
}

.field-icon svg,
.icon-button svg {
  width: 18px;
  height: 18px;
}

.input-shell input {
  color: #ecf3f0;
  font-size: 13px;
  padding: 12px 4px;
}

.input-shell input::placeholder {
  color: #65746e;
}

.icon-button {
  width: 44px;
  height: 42px;
  color: #87958f;
}

.field-hint,
.password-strength small {
  color: #71817a;
  font-size: 9px;
}

.primary-button {
  min-height: 45px;
  margin-top: 16px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  box-shadow: 0 11px 26px rgba(56, 242, 181, 0.12);
  color: #032018;
  font-size: 13px;
  font-weight: 520;
  letter-spacing: 0.02em;
}

#loginButton,
#registerButton,
#resetSubmit {
  font-size: 13px;
  font-weight: 400;
}

.verification-button {
  min-height: 46px;
  border-radius: 10px;
  background: var(--green);
  color: #032018;
  font-size: 12px;
  font-weight: 500;
}

.captcha-image-button {
  height: 46px;
  border-color: rgba(158, 180, 201, 0.14);
  border-radius: 10px;
  background: #08100e;
}

.captcha-image-button:hover {
  border-color: rgba(56, 242, 181, 0.45);
}

.text-button,
.inline-button,
.agreement-link {
  color: #42dfb3;
}

.switch-copy {
  margin-top: 16px;
  color: #7f8d87;
  font-size: 11px;
}

.agreement-dialog {
  border-color: rgba(56, 242, 181, 0.17);
  border-radius: 17px;
  background:
    radial-gradient(circle at 92% 0%, rgba(56, 242, 181, 0.075), transparent 13rem),
    #0b1110;
}

.agreement-dialog-header {
  border-bottom-color: rgba(158, 180, 201, 0.1);
}

.agreement-dialog-header h2 {
  font-size: 18px;
  font-weight: 590;
}

.agreement-kicker {
  color: #38f2b5;
}

.dialog-close {
  border-color: rgba(158, 180, 201, 0.14);
  background: rgba(255, 255, 255, 0.025);
}

.agreement-content h3 {
  color: #e1e9e5;
  font-size: 12px;
}

.agreement-content p {
  color: #8c9a94;
  font-size: 10px;
}

.agreement-dialog-actions {
  border-top-color: rgba(158, 180, 201, 0.1);
}

.agreement-dialog-actions button {
  min-height: 43px;
  border: 0;
  border-radius: 10px;
  background: #38f2b5;
  color: #032018;
  font-size: 12px;
  font-weight: 400;
}

.auth-footer {
  color: #697770;
}

.agreement-footer-link {
  color: #93a19b;
  font-size: 11px;
}

@keyframes splashLoading {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(340%);
  }
}

@media (max-width: 380px) {
  .auth-card {
    padding: 17px 14px;
  }

  .logo-auth {
    width: 54px;
    height: 54px;
  }

  .brand-header h1 {
    font-size: 22px;
  }

  .brand-subtitle {
    font-size: 11px;
  }

  .primary-button {
    min-height: 43px;
  }
}

