.auth-body {
  margin: 0;
  min-height: 100dvh;
  background: #050506;
  color: #f4f6f8;
  font-family: Inter, system-ui, sans-serif;
}
.auth-app {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(360px, 1.08fr);
}
.auth-brand {
  position: relative;
  padding: 32px 40px 40px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(600px 320px at 10% 0%, rgba(225,29,46,.22), transparent 55%),
    radial-gradient(500px 280px at 90% 80%, rgba(22,199,132,.1), transparent 50%),
    #08080c;
  border-right: 1px solid rgba(255,255,255,.08);
}
.auth-brand-logo {
  display: flex; align-items: center; gap: 14px;
  color: #fff; text-decoration: none; z-index: 1;
}
.auth-brand-logo img {
  width: 64px; height: 64px; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(225,29,46,.5), 0 0 24px rgba(225,29,46,.3);
  background: #07070a;
}
.auth-brand-logo strong { display: block; letter-spacing: 0.16em; font-size: 13px; }
.auth-brand-logo small { color: #8b919c; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.auth-brand-copy { margin: auto 0; z-index: 1; max-width: 440px; }
.auth-brand-copy h2 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.04em; line-height: 1.05; margin: 10px 0 14px;
}
.auth-brand-copy p { color: #8b919c; margin: 0 0 22px; max-width: 38ch; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.auth-points li {
  display: flex; align-items: center; gap: 10px;
  color: #e8eaef; font-size: 14px;
}
.auth-points svg { width: 16px; height: 16px; color: #e11d2e; }

.auth-chart {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 18px;
}
.auth-chart::before {
  content: "";
  position: absolute; inset: 28px 0 0;
  opacity: 0.18; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 24px;
  mask-image: linear-gradient(180deg, transparent, #000 28%, #000);
}
.auth-chart-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
  font-size: 12px; letter-spacing: 0.08em; font-weight: 700;
}
.auth-chart-sym { color: #fff; }
.auth-chart-live {
  font-size: 9px; letter-spacing: 0.16em;
  color: #fff; background: #e11d2e;
  padding: 3px 7px; border-radius: 999px;
  animation: authLive 1.6s ease-in-out infinite;
}
.auth-chart-px {
  margin-left: auto; font-variant-numeric: tabular-nums;
  letter-spacing: 0; font-size: 13px;
}
.auth-chart-px.pos { color: #16c784; }
.auth-chart-px.neg { color: #ff6b7a; }
.auth-candles {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 4px; height: 168px; position: relative; z-index: 1;
}
.auth-candle {
  position: relative;
  flex: 1 1 0;
  height: 100%;
  min-width: 0;
}
.auth-wick {
  position: absolute;
  left: 50%; bottom: 0;
  width: 2px; margin-left: -1px;
  height: calc(var(--h, 40%) + var(--wick, 12%));
  border-radius: 1px; opacity: 0.8;
}
.auth-bar {
  position: absolute;
  left: 50%; bottom: 0;
  width: 8px; margin-left: -4px;
  height: var(--h, 40%);
  border-radius: 2px;
}
.auth-candle.up .auth-wick,
.auth-candle.up .auth-bar {
  background: #16c784;
  box-shadow: 0 0 10px rgba(22, 199, 132, .28);
}
.auth-candle.down .auth-wick,
.auth-candle.down .auth-bar {
  background: #e11d2e;
  box-shadow: 0 0 10px rgba(225, 29, 46, .28);
}
@keyframes authLive {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.auth-sheet {
  display: flex; flex-direction: column;
  padding: 28px 36px 36px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  min-height: 100dvh;
}
.auth-appbar { display: none; }
.auth-seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; margin: 0 0 22px;
  background: #101014; border: 1px solid rgba(255,255,255,.08); border-radius: 999px;
}
.auth-seg a {
  display: grid; place-items: center;
  min-height: 42px; border-radius: 999px;
  font-size: 13px; font-weight: 650; color: #8b919c; text-decoration: none;
}
.auth-seg a.is-on { background: #e11d2e; color: #fff; box-shadow: 0 8px 20px rgba(225,29,46,.35); }
.auth-head { margin-bottom: 22px; }
.auth-head h1 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.04em; margin: 6px 0 8px;
}
.auth-head .muted { margin: 0; color: #8b919c; }
.auth-form { display: grid; gap: 14px; flex: 1; }
.auth-field { display: grid; gap: 7px; font-size: 12px; color: #8b919c; letter-spacing: .04em; }
.auth-field > span:not(.auth-control) { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.auth-field em { font-style: normal; color: #5c6370; letter-spacing: 0; font-size: 11px; }
.auth-control {
  position: relative; display: flex; align-items: center;
}
.auth-control > svg {
  position: absolute; left: 14px; width: 16px; height: 16px; color: #5c6370; pointer-events: none;
}
.auth-control .input {
  width: 100%; min-height: 52px; padding: 12px 44px 12px 42px;
  border-radius: 14px; border: 1px solid rgba(255,255,255,.1);
  background: #0c0c12; color: #fff; font-size: 16px;
}
.auth-control .input:focus {
  outline: none; border-color: rgba(225,29,46,.55);
  box-shadow: 0 0 0 3px rgba(225,29,46,.16);
}
.auth-eye {
  position: absolute; right: 6px; width: 40px; height: 40px;
  border: 0; background: transparent; color: #8b919c; border-radius: 10px;
  display: grid; place-items: center; cursor: pointer;
}
.auth-eye svg { width: 18px; height: 18px; }
.auth-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 13px;
}
.auth-row a, .auth-text-link { color: #fff; text-decoration: none; }
.auth-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: #c9cdd4; letter-spacing: 0; cursor: pointer;
}
.auth-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: #e11d2e; flex: 0 0 auto; }
.auth-legal { line-height: 1.45; }
.auth-legal a { color: #fff; }
.auth-actions { display: grid; gap: 12px; margin-top: 16px; }
.auth-sheet .hero-btn.auth-submit,
.auth-sheet .hero-btn.auth-nav-btn {
  width: 100%;
  min-height: 44px;
  height: 44px;
  padding: 0 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  border-radius: 12px;
}
.auth-wizard-nav [hidden],
.hero-btn[hidden] { display: none !important; }
.auth-more {
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 0 14px;
  background: #0c0c12;
}
.auth-more summary {
  min-height: 48px; display: flex; align-items: center; cursor: pointer; color: #c9cdd4; font-size: 13px;
}
.auth-more .auth-field { padding-bottom: 12px; }
.auth-strength { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.auth-strength i { height: 4px; border-radius: 99px; background: #2a2b36; display: block; }
.auth-strength.s1 i:nth-child(1) { background: #e11d2e; }
.auth-strength.s2 i:nth-child(-n+2) { background: #ffd166; }
.auth-strength.s3 i { background: #16c784; }
.auth-sheet .alert { margin-bottom: 14px; }
.auth-text-link { text-align: center; font-size: 13px; min-height: 44px; display: grid; place-items: center; }

@media (max-width: 900px) {
  .auth-app { grid-template-columns: 1fr; }
  .auth-brand {
    padding: 8px 16px 0;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .auth-brand-logo,
  .auth-brand-copy { display: none; }
  .auth-chart { padding-top: 4px; margin-top: 0; }
  .auth-chart-meta { margin-bottom: 6px; }
  .auth-candles { height: 64px; gap: 3px; }
  .auth-bar { width: 6px; margin-left: -3px; }
  .auth-sheet {
    max-width: none; min-height: 0;
    padding: calc(10px + env(safe-area-inset-top)) 20px calc(18px + env(safe-area-inset-bottom));
  }
  .auth-appbar {
    display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
    margin: 0 0 18px;
  }
  .auth-back {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: #121218; border: 1px solid rgba(255,255,255,.08); color: #fff;
  }
  .auth-back svg { width: 22px; height: 22px; }
  .auth-appbar-logo { display: grid; place-items: center; }
  .auth-appbar-logo img {
    width: 44px; height: 44px; border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(225,29,46,.45);
  }
  .auth-head h1 { font-size: 2rem; }
  .auth-actions {
    margin-top: 16px; padding-top: 8px;
    position: sticky; bottom: 0;
    background: linear-gradient(180deg, transparent, #050506 28%);
  }
  .auth-sheet .hero-btn.auth-nav-btn,
  .auth-sheet .hero-btn.auth-submit {
    min-height: 44px;
    height: 44px;
  }
}
.auth-steps {
  list-style: none; margin: 0 0 18px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.auth-steps li {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; border-radius: 999px;
  font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: #8b919c; background: #101014; border: 1px solid rgba(255,255,255,.08);
}
.auth-steps li[data-go-step] { cursor: default; }
.auth-steps li.is-done { cursor: pointer; color: #c9fff0; border-color: rgba(22,199,132,.4); background: rgba(22,199,132,.1); }
.auth-steps li span {
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1c1d24; color: #c9cdd4; font-size: 10px;
}
.auth-steps li.is-on {
  color: #fff; border-color: rgba(225,29,46,.45); background: rgba(225,29,46,.16);
}
.auth-steps li.is-on span { background: #e11d2e; color: #fff; }
.auth-steps li.is-done span { background: #16c784; color: #04140e; }
.auth-pane { display: none; }
.auth-pane.is-on { display: grid; gap: 12px; }
.auth-otp { letter-spacing: .42em; text-align: center; font-variant-numeric: tabular-nums; }
.auth-step-error {
  margin: 0;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(225,29,46,.12); border: 1px solid rgba(225,29,46,.35);
  color: #ffb4b8; font-size: 13px;
}
.auth-form.has-back .auth-wizard-nav {
  grid-template-columns: minmax(108px, .72fr) 1fr;
}
.auth-form [data-otp-resend] {
  justify-self: start; min-height: 36px; padding: 0; color: #c9cdd4; background: none; border: 0; cursor: pointer;
}
.auth-otp-hint { color: #8b919c; font-size: 12px; }

@media (min-width: 901px) {
  .auth-body.is-register,
  .auth-body.is-login {
    height: 100dvh;
    overflow: hidden;
  }
  .auth-body.is-register .auth-app,
  .auth-body.is-login .auth-app {
    min-height: 0;
    height: 100dvh;
  }
  .auth-body.is-register .auth-sheet,
  .auth-body.is-login .auth-sheet {
    min-height: 0;
    height: 100dvh;
    overflow: hidden;
    padding: 22px 40px;
    justify-content: center;
  }
  .auth-body.is-register .auth-seg,
  .auth-body.is-login .auth-seg { margin-bottom: 14px; }
  .auth-body.is-register .auth-seg a,
  .auth-body.is-login .auth-seg a { min-height: 38px; }
  .auth-body.is-register .auth-head,
  .auth-body.is-login .auth-head { margin-bottom: 10px; }
  .auth-body.is-register .auth-head .eyebrow,
  .auth-body.is-login .auth-head .eyebrow { display: none; }
  .auth-body.is-register .auth-head .muted,
  .auth-body.is-login .auth-head .muted { display: block; font-size: 13px; margin-top: 6px; }
  .auth-body.is-register .auth-head h1,
  .auth-body.is-login .auth-head h1 { font-size: 1.7rem; margin: 0; }
  .auth-body.is-register .auth-steps { margin-bottom: 16px; }
  .auth-body.is-register .auth-steps li { min-height: 34px; font-size: 11px; }
  .auth-body.is-register .auth-form,
  .auth-body.is-login .auth-form { gap: 12px; flex: 0 0 auto; }
  .auth-body.is-register .auth-pane.is-on { gap: 12px; }
  .auth-body.is-register .auth-control .input,
  .auth-body.is-login .auth-control .input { min-height: 42px; border-radius: 12px; }
  .auth-body.is-register .help-tip { display: none; }
  .auth-body.is-register .auth-otp-hint { font-size: 11px; }
  .auth-body.is-register .auth-submit,
  .auth-body.is-register .auth-nav-btn,
  .auth-body.is-login .auth-submit,
  .auth-body.is-login .auth-nav-btn { min-height: 44px; }
  .auth-body.is-register .auth-actions,
  .auth-body.is-login .auth-actions { margin-top: 16px; }
  .auth-body.is-register .auth-legal { font-size: 12px; }
  .auth-body.is-register .auth-form [data-otp-resend] { min-height: 28px; font-size: 12px; }
  .auth-body.is-login .auth-row { margin-top: 2px; }
}

@supports (padding: max(0px)) {
  .auth-sheet { padding-bottom: max(36px, env(safe-area-inset-bottom)); }
}
