:root {
  color-scheme: light;
  --frame: #10052f;
  --surface: #f5f5f6;
  --violet: #6838ee;
  --action: #5c30d7;
  --lime: #d3fa55;
  --ink: #19161f;
  --muted: #605c67;
  --edge: #e0dde4;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: clamp(16px, 4.5vw, 72px);
  background: var(--frame);
  color: var(--ink);
  font: 15px/1.5 "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

a { color: var(--action); text-underline-offset: .24em; }
button, input { font: inherit; }
:is(button, a, input):focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  z-index: 2;
  inset: 6px auto auto 6px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.auth-shell {
  width: min(100%, 1130px);
  padding: clamp(9px, 1.15vw, 16px);
  border: 1px solid #ffffff80;
  border-radius: 31px;
  background: var(--surface);
  box-shadow: 0 22px 75px #06011940;
}
.auth-header, .auth-brand, .access-badge {
  display: flex;
  align-items: center;
}
.auth-header {
  justify-content: space-between;
  gap: 10px;
  min-height: 65px;
  padding: 12px 18px;
  border-radius: 22px;
  background: #fff;
}
.auth-brand { gap: 18px; }
.wordmark { position: relative; width: 116px; height: 28px; overflow: hidden; }
.wordmark img { position: absolute; width: 153px; max-width: none; left: -16px; top: -35px; }
.product-name {
  border-left: 1px solid var(--edge);
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}
.access-badge {
  gap: 8px;
  padding: 8px 15px;
  border-radius: 24px;
  background: #ede7ff;
  color: #4e24be;
  font-size: 12px;
  font-weight: 600;
}
.access-badge svg { width: 15px; height: 15px; }

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 9px;
}
.auth-story {
  display: grid;
  grid-template: minmax(252px, 1.4fr) minmax(190px, 1fr) / repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.hero-tile, .feature-tile, .auth-main {
  border-radius: 23px;
  min-width: 0;
  background: #fff;
}
.hero-tile {
  position: relative;
  isolation: isolate;
  grid-column: 1 / -1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(23px, 3vw, 43px);
  color: #fff;
  background: #693af2;
}
.hero-tag, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.hero-tag span, .eyebrow::before {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}
.hero-tile h2 {
  margin: 17px 0 12px;
  font-size: clamp(44px, 5.2vw, 76px);
  font-weight: 500;
  line-height: .99;
  letter-spacing: -.068em;
}
.hero-description { max-width: 270px; margin: 0; font-size: 14px; line-height: 1.6; }
.step-art { width: 100%; height: 46%; position: absolute; z-index: -1; bottom: 0; left: 0; }
.feature-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(15px, 2vw, 25px);
}
.feature-tile h3 { margin: 0; font-size: clamp(16px, 1.5vw, 21px); font-weight: 500; letter-spacing: -.04em; }
.gauge-art, .workflow-bars { display: block; width: 100%; height: 95px; margin: 16px auto 8px; }
.workflow-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 9px;
  padding-inline: 10%;
}
.workflow-bars i {
  width: 32%;
  height: 46%;
  border-radius: 8px 8px 4px 4px;
  background: repeating-linear-gradient(130deg, #e4e3e6 0 6px, #ededee 6px 12px);
}
.workflow-bars i:nth-child(2) {
  height: 70%;
  background: repeating-linear-gradient(130deg, #693af2 0 6px, #8657ff 6px 12px);
}
.workflow-bars i:nth-child(3) {
  height: 96%;
  background: repeating-linear-gradient(130deg, #caf14c 0 6px, #d9fa78 6px 12px);
}
.tile-caption { margin: 0; color: var(--muted); font-size: 12px; }

.auth-main {
  display: grid;
  place-items: center;
  min-height: 555px;
  padding: clamp(28px, 3.8vw, 54px);
}
.auth-card { width: min(100%, 370px); }
.eyebrow { color: var(--muted); }
.eyebrow::before { content: ""; background: var(--violet); }
.auth-card h1 {
  margin: 14px 0 8px;
  font-size: clamp(32px, 3.2vw, 46px);
  font-weight: 520;
  line-height: 1.08;
  letter-spacing: -.063em;
}
.auth-sub { margin: 0 0 23px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.auth-sub strong { color: var(--ink); font-weight: 600; }
.auth-card label { display: block; margin: 15px 0; font-size: 13px; font-weight: 600; }
.auth-card input {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: #faf9fb;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}
.auth-card input::placeholder { color: #77717c; }
.auth-card small { display: inline-block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 400; }
.auth-form-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.auth-form-row a, .auth-first a, .auth-back { font-weight: 600; }
.auth-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 9px 13px 9px 20px;
  margin-top: 20px;
  border: 0;
  border-radius: 24px;
  background: var(--action);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}
.auth-submit:hover { background: #4922b1; }
.auth-submit span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  border: 1px solid #ffffff70;
  font-size: 17px;
}
.auth-first { margin-top: 25px; padding-top: 18px; border-top: 1px solid #edeaf0; text-align: center; font-size: 13px; color: var(--muted); }
.auth-notice { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: #f0ebff; color: #482a89; font-size: 13px; }
.auth-back { display: block; width: fit-content; margin: 20px auto 0; font-size: 13px; }
.resend { display: grid; justify-items: center; margin-top: 14px; }
.text-button { border: 0; background: none; color: var(--action); text-decoration: underline; text-underline-offset: .24em; cursor: pointer; }
.auth-card .otp-input { text-align: center; font-size: 24px; letter-spacing: .32em; font-variant-numeric: tabular-nums; }

@media (max-width: 800px) {
  .auth-shell { max-width: 540px; }
  .auth-layout { display: block; }
  .auth-story { display: none; }
  .auth-main { min-height: 0; padding: clamp(26px, 7vw, 48px) clamp(18px, 5vw, 38px); }
  .auth-header { min-height: 56px; padding-inline: 15px; }
  .product-name { display: none; }
}

@media (max-width: 390px) {
  body { padding: 8px; }
  .auth-main { padding-inline: 15px; }
  .auth-form-row span { display: none; }
  .auth-form-row { justify-content: flex-end; }
}
