.auth-page {
  --bg-0: #05060b;
  --bg-1: #070a12;
  --bg-2: #0b1020;
  --line: rgba(255, 255, 255, .1);
  --line-soft: rgba(255, 255, 255, .065);
  --text: #f4f4f5;
  --muted: rgba(228, 228, 231, .82);
  --accent-a: #a78bfa;
  --accent-b: #d946ef;
  --accent-c: #d946ef;
  color: var(--text);
  font-family: "Sora", "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(46rem 24rem at -12% -18%, rgba(167, 139, 250, .16), transparent 64%),
    radial-gradient(42rem 22rem at 112% -10%, rgba(217, 70, 239, .12), transparent 66%),
    radial-gradient(44rem 24rem at 16% 118%, rgba(251, 191, 36, .1), transparent 70%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 52%, var(--bg-0) 100%);
}

.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(34rem 16rem at -10% -8%, rgba(167, 139, 250, .14), transparent 66%),
    radial-gradient(30rem 15rem at 110% -6%, rgba(217,70,239, .1), transparent 68%);
}

.auth-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .2;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .22) 1px, transparent 0),
    linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .3) 74%);
  background-size: 16px 16px, auto;
  background-position: center, center;
  background-repeat: repeat, no-repeat;
}

.auth-page .screen-ring,
.auth-page .legal-bg-photo {
  display: none;
}

.auth-page .frame {
  padding: .9rem .82rem 1rem;
}

.auth-page .shell {
  width: min(560px, 100%);
  min-height: calc(100dvh - 1.8rem);
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: .22rem 0 .44rem;
  gap: .88rem;
  position: relative;
  overflow: visible;
}

.auth-page .shell::before {
  display: none;
}

.auth-page.auth-signup .shell {
  width: min(860px, 100%);
}

.auth-page .top {
  margin-bottom: .04rem;
}

.auth-page .brand {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  font-size: .98rem;
  font-weight: 650;
  color: var(--text);
}

.auth-page .brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: .72rem;
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
  box-shadow: 0 14px 28px -18px rgba(2, 6, 23, .34);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  flex: 0 0 auto;
}

.auth-page .brand-mark svg {
  width: 1.18rem;
  height: 1.18rem;
  display: block;
}

.auth-page .brand-word {
  font-size: clamp(1.5rem, 4.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.05em;
  text-transform: lowercase;
  color: currentColor;
}

.auth-page .page-title {
  margin: .08rem 0 .06rem;
  font-size: 1.24rem;
  font-weight: 650;
  letter-spacing: -.01em;
  text-align: center;
  padding-inline: .3rem;
}

.auth-page .page-subtitle {
  margin: 0 0 .5rem;
  font-size: .85rem;
  line-height: 1.42;
  color: var(--muted);
  text-align: center;
  padding-inline: .3rem;
}

.auth-page .auth-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  margin: 0 auto .68rem;
  padding: .42rem .72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: rgba(244, 244, 245, .9);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 620;
  letter-spacing: .01em;
}

.auth-page .auth-shortcut::before {
  content: "";
  width: .92rem;
  height: .92rem;
  flex: 0 0 .92rem;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'%3E%3Cpath d='m11.4 4.6-1.4-1.4-6 6 6 6 1.4-1.4L7.8 10h9.2V8H7.8l3.6-3.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'%3E%3Cpath d='m11.4 4.6-1.4-1.4-6 6 6 6 1.4-1.4L7.8 10h9.2V8H7.8l3.6-3.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.auth-page .auth-shortcut:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .98);
}

.auth-page .toast {
  border-radius: .76rem;
  border: 1px solid rgba(167, 139, 250, .24);
  background: rgba(5, 8, 16, .92);
  box-shadow: none;
}

.auth-page .panel {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, .1);
  background:
    radial-gradient(22rem 8rem at 100% -16%, rgba(167, 139, 250, .14), transparent 70%),
    radial-gradient(18rem 8rem at -8% -18%, rgba(217,70,239, .1), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
  box-shadow: 0 16px 28px -24px rgba(0, 0, 0, .9);
  padding: .94rem .9rem .98rem;
}

.auth-page .form {
  gap: .8rem;
}

.auth-page .field {
  gap: .42rem;
}

.auth-page .field-label {
  color: rgba(228, 228, 231, .76);
  font-size: .76rem;
}

.auth-page .input-with-flag {
  position: relative;
}

.auth-page .input-with-flag .input-flag {
  left: .62rem;
  width: 2.24rem;
  min-width: 2.24rem;
  z-index: 2;
}

.auth-page .input-flag {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .075);
}

.auth-page .input-flag:hover {
  border-color: rgba(167, 139, 250, .42);
  background: rgba(167, 139, 250, .14);
}

.auth-page .field input {
  min-height: 3.04rem;
  border-radius: .84rem;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(7, 10, 18, .82);
  color: #fff;
  font-size: .95rem;
  padding: .78rem .86rem;
}

.auth-page .input-with-flag input {
  padding-left: 4.1rem;
  font-variant-numeric: tabular-nums;
}

.auth-page .field input::placeholder {
  color: rgba(228, 228, 231, .55);
}

.auth-page .field input:focus {
  border-color: rgba(167, 139, 250, .42);
  box-shadow: 0 0 0 2px rgba(167, 139, 250, .2);
}

.auth-page .field input.lsk-input {
  border-style: dashed;
  border-color: rgba(167, 139, 250, .36);
}

.auth-page .btn {
  min-height: 3.08rem;
  border-radius: .84rem;
  border: 1px solid rgba(167, 139, 250, .38);
  background: linear-gradient(135deg, rgba(167, 139, 250, .68), rgba(217, 70, 239, .62), rgba(217,70,239, .58));
  color: #05060b;
  font-size: .93rem;
  font-weight: 680;
  box-shadow: 0 14px 26px -20px rgba(217,70,239, .82);
}

.auth-page .btn:hover {
  filter: brightness(1.03);
}

.auth-page .btn-subtle {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: rgba(244, 244, 245, .95);
}

.auth-page .btn-search {
  border-color: rgba(167, 139, 250, .42);
  background: linear-gradient(135deg, rgba(167, 139, 250, .8), rgba(124, 58, 237, .74));
  color: #f8fafc;
}

.auth-page .btn-continue {
  border-color: rgba(217,70,239, .46);
  background: linear-gradient(135deg, rgba(217,70,239, .88), rgba(217,70,239, .74));
  color: #05060b;
}

.auth-page .muted,
.auth-page .otp-meta,
.auth-page .switch {
  color: var(--muted);
}

.auth-page .switch-outside {
  margin-top: .28rem;
}

.auth-page .switch a,
.auth-page .consent a {
  border-bottom-color: rgba(255, 255, 255, .28);
}

.auth-page .consent {
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: .84rem;
  background: rgba(255, 255, 255, .03);
}

.auth-page .account,
.auth-page .actions {
  gap: .72rem;
}

.auth-page .start-work {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: .88rem;
  background:
    linear-gradient(135deg, rgba(167, 139, 250, .14), rgba(217,70,239, .12)),
    rgba(255, 255, 255, .03);
  padding: .76rem .78rem;
}

.auth-page .choice-row {
  gap: .56rem;
}

.auth-page .status-chip {
  border-color: rgba(148, 163, 184, .4);
}

.auth-page .method-switch {
  min-height: 3.02rem;
  border-radius: .84rem;
  border-color: rgba(255, 255, 255, .14);
  background: rgba(7, 10, 18, .82);
}

.auth-page .method-switch:focus {
  border-color: rgba(167, 139, 250, .42);
  box-shadow: 0 0 0 2px rgba(167, 139, 250, .16);
}

.auth-page .country-picker-backdrop {
  background: rgba(5, 8, 16, .66);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.auth-page .country-picker-sheet {
  border-radius: .98rem;
  border: 1px solid rgba(255, 255, 255, .14);
  background:
    radial-gradient(24rem 10rem at 100% -24%, rgba(167, 139, 250, .16), transparent 65%),
    radial-gradient(18rem 8rem at -12% -20%, rgba(167, 139, 250, .2), transparent 64%),
    linear-gradient(180deg, rgba(16, 23, 36, .98), rgba(10, 14, 22, .98));
  box-shadow: 0 26px 56px -36px rgba(0, 0, 0, .92);
}

.auth-page .country-picker-close {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04);
}

.auth-page .country-option {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: .82rem;
  background: rgba(255, 255, 255, .04);
}

.auth-page .country-option.is-active:hover {
  border-color: rgba(167, 139, 250, .36);
  background: rgba(167, 139, 250, .12);
}

.auth-page.auth-signup .flow-shell {
  max-width: 32rem;
}

.auth-page.auth-signup .progress-dots {
  width: min(15.8rem, 100%);
  margin: 0 auto .28rem;
  padding: .06rem 0 .16rem;
}

.auth-page.auth-signup .progress-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(50% + .64rem);
  right: calc(-50% + .64rem);
  height: 1px;
  background: rgba(255, 255, 255, .22);
  transform: translateY(-50%);
}

.auth-page.auth-signup .progress-item.is-complete:not(:last-child)::after,
.auth-page.auth-signup .progress-item.is-current:not(:last-child)::after {
  background: linear-gradient(90deg, rgba(167, 139, 250, .8), rgba(217, 70, 239, .76));
}

.auth-page.auth-signup .progress-node {
  width: 1rem;
  height: 1rem;
  border-color: rgba(255, 255, 255, .34);
  background: rgba(7, 10, 18, .88);
}

.auth-page.auth-signup .progress-item.is-current .progress-node {
  border-color: rgba(167, 139, 250, .72);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, .18);
}

.auth-page.auth-signup .progress-item.is-complete .progress-node {
  border-color: rgba(217,70,239, .68);
  background: linear-gradient(135deg, rgba(217, 70, 239, .34), rgba(167, 139, 250, .32));
}

.auth-page.auth-signup .lsk-card {
  border-radius: .84rem;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  padding: .66rem .7rem;
}

.auth-page.auth-signup .lsk-avatar {
  border-radius: .76rem;
  border-color: rgba(255, 255, 255, .16);
}

@media (max-width: 860px) {
  .auth-page.auth-signup .shell {
    width: min(680px, 100%);
  }
}

@media (max-width: 420px) {
  .auth-page .frame {
    padding: .5rem .54rem .78rem;
  }

  .auth-page .shell {
    width: 100%;
    min-height: calc(100dvh - 1rem);
    border-radius: 0;
    padding: .08rem 0 .18rem;
    gap: .8rem;
  }

  .auth-page .panel {
    border-radius: .9rem;
    padding: .9rem .86rem .94rem;
  }

  .auth-page .page-title,
  .auth-page .page-subtitle {
    padding-inline: .32rem;
  }

  .auth-page .page-title {
    font-size: 1.16rem;
  }

  .auth-page .page-subtitle {
    font-size: .82rem;
  }

  .auth-page .field input {
    min-height: 3rem;
    font-size: .94rem;
  }

  .auth-page .btn {
    min-height: 3.02rem;
    font-size: .92rem;
  }

  .auth-page .choice-row {
    grid-template-columns: 1fr;
  }

  .auth-page.auth-signup .progress-dots {
    width: min(14.4rem, 100%);
  }
}

/* Balanced readable scale + tighter page height */
.auth-page {
  font-size: clamp(.95rem, .93rem + .14vw, 1rem);
  line-height: 1.45;
}

.auth-page .frame {
  padding: .74rem .72rem .82rem;
}

.auth-page .shell {
  min-height: calc(100dvh - 1.56rem);
  gap: .8rem;
}

.auth-page .brand {
  font-size: 1rem;
}

.auth-page .page-title {
  font-size: clamp(1.22rem, 1.1rem + .55vw, 1.46rem);
}

.auth-page .page-subtitle {
  font-size: .9rem;
}

.auth-page .panel {
  padding: .88rem .84rem .92rem;
}

.auth-page .field-label {
  font-size: .82rem;
}

.auth-page .field input {
  min-height: 2.92rem;
  font-size: 1rem;
  padding: .68rem .8rem;
}

.auth-page .btn {
  min-height: 2.94rem;
  font-size: .98rem;
}

.auth-page .muted,
.auth-page .otp-meta,
.auth-page .switch,
.auth-page .consent {
  font-size: .86rem;
}

.auth-page .country-picker-title {
  font-size: .94rem;
}

.auth-page .country-option-name {
  font-size: .86rem;
}

.auth-page .country-option-meta {
  font-size: .74rem;
}

.auth-page .country-option-pill {
  font-size: .7rem;
}

.auth-page.auth-signup .progress-dots {
  width: min(14.6rem, 100%);
}

@media (max-width: 420px) {
  .auth-page .shell {
    min-height: calc(100dvh - .9rem);
    gap: .74rem;
  }

  .auth-page .page-title {
    font-size: 1.2rem;
  }

  .auth-page .page-subtitle {
    font-size: .88rem;
  }

  .auth-page .field input {
    min-height: 2.88rem;
    font-size: .96rem;
  }

  .auth-page .btn {
    min-height: 2.92rem;
    font-size: .95rem;
  }
}

/* Auth stability pass: viewport fit + phone country flag/input alignment */
.auth-page {
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
}

.auth-page .frame {
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  padding: .62rem .68rem;
}

.auth-page .shell {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  gap: .66rem;
  padding: .06rem 0 .14rem;
  overflow: hidden;
}

.auth-page .top {
  margin-bottom: 0;
}

.auth-page .page-title {
  margin: .04rem 0;
}

.auth-page .page-subtitle {
  margin: 0 0 .24rem;
}

.auth-page .panel {
  padding: .78rem .76rem .82rem;
}

.auth-page .shell > .auth-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Flatten login/signup containers and keep the flow centered in the viewport */
.auth-page #guestPanel.auth-panel,
.auth-page #accountPanel.auth-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  width: 100%;
}

.auth-page #guestPanel.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-page.auth-signup #guestPanel .flow-shell {
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  min-height: 100%;
  align-content: center;
}

.auth-page.auth-signup #guestPanel .step-content {
  align-content: center;
}

.auth-page .form {
  gap: .66rem;
}

.auth-page .field {
  gap: .34rem;
}

.auth-page .field input {
  min-height: 2.82rem;
  padding: .64rem .78rem;
}

.auth-page .btn,
.auth-page .method-switch {
  min-height: 2.82rem;
}

.auth-page .switch-outside {
  margin-top: .04rem;
}

.auth-page.auth-signup .progress-dots {
  margin: 0 auto .18rem;
}

.auth-page .input-with-flag {
  position: relative;
  overflow: visible;
}

.auth-page .input-with-flag .input-flag {
  left: .62rem;
  width: 2.18rem;
  min-width: 2.18rem;
  height: 2.18rem;
  border-radius: .62rem;
  z-index: 3;
}

.auth-page .input-with-flag input {
  padding-left: 4.5rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 420px) {
  .auth-page .frame {
    padding: .44rem .5rem .5rem;
  }

  .auth-page .shell {
    gap: .58rem;
    padding: .04rem 0 .08rem;
  }

  .auth-page .panel {
    padding: .72rem .68rem .74rem;
  }

  .auth-page .field input {
    min-height: 2.74rem;
    font-size: .95rem;
  }

  .auth-page .btn,
  .auth-page .method-switch {
    min-height: 2.74rem;
    font-size: .94rem;
  }

  .auth-page .input-with-flag .input-flag {
    width: 2.08rem;
    min-width: 2.08rem;
    height: 2.08rem;
  }

  .auth-page .input-with-flag input {
    padding-left: 4.34rem;
  }
}

/* Final auth harmony: shared inset rhythm + non-overlapping phone frame */
.auth-page .frame {
  padding: 1.08rem 1.04rem 1.14rem;
}

.auth-page .shell,
.auth-page.auth-login .shell,
.auth-page.auth-signup .shell {
  width: min(548px, 100%);
  min-height: 0;
  height: 100%;
  max-height: 100%;
  padding: .34rem .4rem .48rem;
  gap: .9rem;
  overflow: hidden;
  justify-content: center;
}

.auth-page .page-title {
  margin: .04rem 0 .03rem;
}

.auth-page .page-subtitle {
  margin: 0 0 .2rem;
}

.auth-page .page-title,
.auth-page .page-subtitle {
  max-width: 28rem;
  margin-inline: auto;
  padding-inline: .52rem;
}

.auth-page .shell > .auth-panel {
  width: 100%;
  max-width: 29.5rem;
  margin: 0 auto;
  padding-inline: .18rem;
}

.auth-page #guestPanel.auth-panel {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.auth-page.auth-signup #guestPanel .flow-shell {
  width: 100%;
  max-width: 28rem;
  min-height: 100%;
  margin: 0 auto;
  align-content: end;
}

.auth-page.auth-signup #guestPanel .step-content {
  align-content: end;
}

.auth-page .form {
  gap: .68rem;
}

.auth-page .field {
  gap: .34rem;
}

.auth-page .input-with-flag {
  display: flex;
  align-items: center;
  gap: .42rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 1.02rem;
  background: rgba(8, 12, 22, .68);
  padding: .14rem .16rem;
  min-height: 2.88rem;
}

.auth-page .input-with-flag:focus-within {
  border-color: rgba(167, 139, 250, .62);
  box-shadow: 0 0 0 2px rgba(167, 139, 250, .24);
}

.auth-page .input-with-flag .input-flag {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  width: 2.08rem;
  min-width: 2.08rem;
  height: 2.08rem;
  border-radius: .66rem;
  z-index: 1;
}

.auth-page .input-with-flag .input-flag:active {
  transform: scale(.98);
}

.auth-page .input-with-flag input {
  flex: 1 1 auto;
  min-height: 2.44rem;
  padding: .48rem .62rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.auth-page .input-with-flag input:focus {
  border: 0;
  box-shadow: none;
}

.auth-page .btn,
.auth-page .method-switch {
  min-height: 2.84rem;
}

.auth-page .switch-outside {
  margin-top: .08rem;
}

@media (max-width: 420px) {
  .auth-page .frame {
    padding: .64rem .68rem .72rem;
  }

  .auth-page .shell {
    width: min(500px, 100%);
    padding: .14rem .24rem .22rem;
    gap: .64rem;
  }

  .auth-page .page-title,
  .auth-page .page-subtitle {
    padding-inline: .42rem;
  }

  .auth-page .input-with-flag {
    min-height: 2.8rem;
    padding: .12rem .14rem;
  }

  .auth-page .input-with-flag .input-flag {
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
  }

  .auth-page .input-with-flag input {
    min-height: 2.36rem;
    padding: .44rem .56rem;
  }
}

/* Auth potential uplift: cleaner hierarchy, better inset, balanced depth */
.auth-page {
  --auth-shell-max: 31rem;
  --auth-panel-max: 26.8rem;
  --auth-line: rgba(255, 255, 255, .16);
  --auth-line-strong: rgba(255, 255, 255, .24);
  --auth-surface-a: rgba(11, 16, 32, .94);
  --auth-surface-b: rgba(8, 12, 22, .9);
}

.auth-page.auth-login {
  --auth-panel-max: 24.8rem;
}

.auth-page .frame {
  padding: 1rem .92rem 1.06rem;
}

.auth-page .shell,
.auth-page.auth-login .shell,
.auth-page.auth-signup .shell {
  width: min(var(--auth-shell-max), 100%);
  padding: .36rem .38rem .46rem;
  gap: .9rem;
  align-items: center;
}

.auth-page .top {
  margin-bottom: .08rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-page .brand {
  font-size: 1.01rem;
  font-weight: 660;
  gap: .24rem;
}

.auth-page .brand-mark {
  width: 2rem;
  height: 2rem;
}

.auth-page .page-title,
.auth-page .page-subtitle {
  max-width: 28.5rem;
  margin-inline: auto;
  text-align: center;
}

.auth-page .page-title {
  margin-top: .06rem;
  font-size: clamp(1.24rem, 1.1rem + .72vw, 1.56rem);
  font-weight: 660;
  line-height: 1.16;
  letter-spacing: -.015em;
}

.auth-page .page-subtitle {
  margin-bottom: .3rem;
  font-size: .9rem;
  color: rgba(228, 228, 231, .84);
}

.auth-page .shell > .auth-panel {
  width: 100%;
  max-width: var(--auth-panel-max);
  margin: 0 auto;
  border: 1px solid var(--auth-line);
  border-radius: 1.24rem;
  background:
    radial-gradient(20rem 9rem at 100% -16%, rgba(167, 139, 250, .15), transparent 70%),
    linear-gradient(180deg, var(--auth-surface-a), var(--auth-surface-b));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 28px 54px -40px rgba(0, 0, 0, .96);
  padding: 1.08rem 1.02rem 1.08rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-page .auth-shortcut,
.auth-page .switch-outside,
.auth-page.auth-signup .progress-dots {
  align-self: center;
}

.auth-page.auth-signup #guestPanel .flow-shell {
  max-width: 100%;
}

.auth-page .form {
  gap: .74rem;
}

.auth-page .field-label {
  font-size: .8rem;
  color: rgba(228, 228, 231, .8);
}

.auth-page .input-with-flag {
  min-height: 3.14rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 1.14rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)),
    rgba(7, 10, 18, .82);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 0 0 1px rgba(255,255,255,.04),
    0 18px 36px -30px rgba(2,6,23,.72);
  padding: .18rem .2rem;
  gap: .46rem;
}

.auth-page .input-with-flag:focus-within {
  border-color: rgba(167, 139, 250, .66);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 0 1px rgba(167, 139, 250, .32),
    0 0 0 3px rgba(167, 139, 250, .18);
}

.auth-page .input-with-flag .input-flag {
  width: 2.12rem;
  min-width: 2.12rem;
  height: 2.12rem;
  border-radius: .7rem;
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
}

.auth-page .input-with-flag input {
  min-height: 2.46rem;
  font-size: .98rem;
  padding: .5rem .64rem;
}

.auth-page .field input {
  border: 1px solid rgba(255, 255, 255, .18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)),
    rgba(7, 10, 18, .84);
  border-radius: 1.02rem;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 0 0 1px rgba(255,255,255,.04),
    0 18px 36px -30px rgba(2,6,23,.72);
}

.auth-page .field input:focus {
  border-color: rgba(167, 139, 250, .48);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 0 1px rgba(167, 139, 250, .3),
    0 0 0 3px rgba(167, 139, 250, .16);
}

.auth-page .method-switch {
  border: 1px solid rgba(255,255,255,.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)),
    rgba(7, 10, 18, .84);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 0 0 1px rgba(255,255,255,.04),
    0 18px 36px -30px rgba(2,6,23,.72);
}

.auth-page .method-switch:focus {
  border-color: rgba(167, 139, 250, .48);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 0 1px rgba(167, 139, 250, .3),
    0 0 0 3px rgba(167, 139, 250, .16);
}

.auth-page .btn {
  min-height: 2.9rem;
  border-radius: .96rem;
  border-color: rgba(167, 139, 250, .44);
  background: linear-gradient(135deg, rgba(167, 139, 250, .78), rgba(217, 70, 239, .7) 58%, rgba(217,70,239, .56));
  color: rgba(248, 250, 252, .98);
  font-size: .95rem;
  font-weight: 650;
}

.auth-page .btn-subtle {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: rgba(244, 244, 245, .95);
}

.auth-page .switch,
.auth-page .muted,
.auth-page .otp-meta {
  font-size: .84rem;
  color: rgba(228, 228, 231, .82);
}

.auth-page .switch a {
  border-bottom-color: rgba(196, 181, 253, .46);
}

.auth-page.auth-signup .progress-dots {
  width: min(13.4rem, 100%);
  margin: 0 auto .22rem;
  padding: .06rem 0 .12rem;
}

.auth-page.auth-signup .progress-node {
  width: .98rem;
  height: .98rem;
  border-color: rgba(255, 255, 255, .34);
  background: rgba(7, 10, 18, .88);
}

.auth-page.auth-signup .progress-item:not(:last-child)::after {
  background: rgba(255, 255, 255, .22);
}

.auth-page.auth-signup .progress-item.is-current .progress-node,
.auth-page.auth-signup .progress-item.is-complete .progress-node {
  border-color: rgba(167, 139, 250, .72);
  background: linear-gradient(145deg, rgba(167, 139, 250, .28), rgba(217, 70, 239, .24));
  box-shadow: 0 0 0 3px rgba(167, 139, 250, .18);
}

.auth-page.auth-signup .progress-item.is-complete .progress-check {
  opacity: 1;
}

.auth-page .country-picker-sheet {
  border-radius: 1.04rem;
  border-color: rgba(255, 255, 255, .18);
  background:
    radial-gradient(24rem 10rem at 100% -24%, rgba(167, 139, 250, .2), transparent 65%),
    radial-gradient(16rem 8rem at -12% -22%, rgba(217,70,239, .14), transparent 66%),
    linear-gradient(180deg, rgba(14, 19, 31, .99), rgba(9, 13, 22, .99));
}

.auth-page .country-option {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
}

@media (max-width: 420px) {
  .auth-page .frame {
    padding: .66rem .7rem .76rem;
  }

  .auth-page .shell {
    width: min(500px, 100%);
    padding: .18rem .24rem .24rem;
    gap: .68rem;
  }

  .auth-page .page-title {
    font-size: 1.28rem;
  }

  .auth-page .page-subtitle {
    font-size: .88rem;
    margin-bottom: .24rem;
  }

  .auth-page .shell > .auth-panel {
    padding: .88rem .84rem .9rem;
    border-radius: 1.02rem;
  }

  .auth-page .input-with-flag {
    min-height: 2.84rem;
    border-radius: .98rem;
  }

  .auth-page .input-with-flag .input-flag {
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
  }

  .auth-page .input-with-flag input {
    min-height: 2.34rem;
    font-size: .96rem;
    padding: .44rem .54rem;
  }

  .auth-page .btn {
    min-height: 2.82rem;
    font-size: .94rem;
  }
}

/* Brand consistency sweep: keep all auth buttons in the same accent family */
.auth-page .btn-subtle {
  border-color: rgba(167, 139, 250, .38);
  background: linear-gradient(145deg, rgba(76, 29, 149, .34), rgba(15, 23, 42, .9) 72%);
  color: rgba(240, 244, 255, .96);
}

.auth-page .btn-subtle:hover {
  border-color: rgba(217,70,239, .38);
  background: linear-gradient(145deg, rgba(124, 58, 237, .36), rgba(15, 23, 42, .92) 72%);
}

.auth-page .btn-add,
.auth-page .btn-send,
.auth-page .btn-verify,
.auth-page .btn-continue,
.auth-page .btn-search {
  border-color: rgba(167, 139, 250, .46);
  background: linear-gradient(135deg, rgba(167, 139, 250, .76), rgba(217, 70, 239, .68) 56%, rgba(217,70,239, .54));
  color: rgba(248, 250, 252, .98);
}

.auth-page .btn-add::before,
.auth-page .btn-send::before,
.auth-page .btn-verify::before,
.auth-page .btn-back::before,
.auth-page .btn-dash::before,
.auth-page .btn-logout::before {
  opacity: .96;
}

/* Final control-size normalization sweep (auth) */
.auth-page {
  --auth-control-h: 3.08rem;
  --auth-control-py: .58rem;
  --auth-control-px: .9rem;
  --auth-control-radius: 1rem;
  --auth-fs-xs: .84rem;
  --auth-fs-sm: .95rem;
  --auth-fs-md: 1.02rem;
  --auth-fs-lg: 1.14rem;
  --auth-fs-xl: clamp(1.3rem, 1.14rem + .62vw, 1.52rem);
}
.auth-page .btn,
.auth-page .btn-subtle,
.auth-page .btn-send,
.auth-page .btn-verify,
.auth-page .btn-back,
.auth-page .btn-dash,
.auth-page .btn-logout,
.auth-page .btn-add,
.auth-page .btn-continue,
.auth-page .btn-search {
  min-height: var(--auth-control-h) !important;
  padding: var(--auth-control-py) var(--auth-control-px) !important;
  border-radius: var(--auth-control-radius) !important;
  line-height: 1.1 !important;
}
.auth-page,
.auth-page button,
.auth-page input,
.auth-page select,
.auth-page textarea {
  font-size: var(--auth-fs-md) !important;
  line-height: 1.42 !important;
}
.auth-page .page-title {
  font-size: var(--auth-fs-xl) !important;
  line-height: 1.16 !important;
}
.auth-page .page-subtitle,
.auth-page .muted,
.auth-page .otp-meta,
.auth-page .switch,
.auth-page .consent,
.auth-page .country-option-meta,
.auth-page .country-picker-title {
  font-size: var(--auth-fs-sm) !important;
  line-height: 1.4 !important;
}
.auth-page .field-label,
.auth-page .status-chip,
.auth-page .country-option-pill {
  font-size: var(--auth-fs-xs) !important;
  line-height: 1.34 !important;
}
.auth-page .btn,
.auth-page .btn-subtle,
.auth-page .btn-send,
.auth-page .btn-verify,
.auth-page .btn-back,
.auth-page .btn-dash,
.auth-page .btn-logout,
.auth-page .btn-add,
.auth-page .btn-continue,
.auth-page .btn-search,
.auth-page .method-switch {
  font-size: var(--auth-fs-sm) !important;
  line-height: 1.12 !important;
}
.auth-page .field input,
.auth-page .input-with-flag input {
  font-size: var(--auth-fs-md) !important;
  line-height: 1.36 !important;
}
.auth-page .brand,
.auth-page .country-option-name {
  font-size: var(--auth-fs-lg) !important;
  line-height: 1.24 !important;
}
.auth-page .country-picker-close {
  min-height: 2.1rem !important;
  border-radius: .7rem !important;
  padding: .36rem .62rem !important;
}
@media (max-width: 420px) {
  .auth-page {
    --auth-control-h: 2.92rem;
    --auth-control-py: .48rem;
    --auth-control-px: .76rem;
    --auth-control-radius: .94rem;
    --auth-fs-xs: .82rem;
    --auth-fs-sm: .9rem;
    --auth-fs-md: .97rem;
    --auth-fs-lg: 1.06rem;
    --auth-fs-xl: clamp(1.18rem, 1.05rem + .58vw, 1.34rem);
  }
}
