:root {
  --ink: #111827;
  --body: #4b5563;
  --muted: #6b7280;
  --soft: #f6f9fd;
  --blue: #1572e8;
  --blue-dark: #073fb8;
  --green: #31ce36;
  --yellow: #f7cf2c;
  --red: #e95348;
}

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

html,
body {
  min-height: 100%;
  margin: 0;
  background: #fff;
}

body {
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.signup-page a {
  color: inherit;
  text-decoration: none;
}

.signup-page img {
  display: block;
  max-width: 100%;
}

.signup-page input,
.signup-page button {
  font: inherit;
}

.signup-page {
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 552px);
  background: #fff;
  overflow: hidden;
}

.brand-stage {
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 18% 5%, rgba(21, 114, 232, .36), rgba(21, 114, 232, 0) 34%),
    radial-gradient(circle at 82% 0%, rgba(49, 206, 54, .2), rgba(49, 206, 54, 0) 30%),
    linear-gradient(135deg, #0b3267 0%, #07111f 48%, #072414 100%);
}

.brand-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.052) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.86), rgba(0,0,0,.3) 82%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.86), rgba(0,0,0,.3) 82%);
  pointer-events: none;
}

.brand-stage::after {
  content: "";
  position: absolute;
  right: -22%;
  bottom: -28%;
  width: 780px;
  height: 780px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(21, 114, 232, .26), rgba(21, 114, 232, 0) 68%);
  pointer-events: none;
}

.stage-inner {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 40px 56px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.brand-mark {
  width: 74px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 74px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.stage-copy {
  align-self: center;
  max-width: 760px;
  padding: 34px 0 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  margin-bottom: 30px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255,255,255,.075);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.badge::before,
.cardless-note::before {
  content: "";
  border-radius: 999px;
  background: var(--green);
}

.badge::before {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 6px rgba(49, 206, 54, .15);
}

.signup-page h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: 58px;
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: 0;
}

.stage-copy p {
  max-width: 700px;
  margin: 24px 0 0;
  color: #d0dbea;
  font-size: 19px;
  line-height: 1.68;
}

.dashboard-shell {
  width: min(980px, 112%);
  margin-top: 34px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 26px;
  background: rgba(255,255,255,.09);
  overflow: hidden;
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 18px;
  color: #d8e4f2;
  font-size: 14px;
  font-weight: 700;
}

.window-dots {
  display: inline-flex;
  gap: 7px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.3);
}

.dashboard-media {
  padding: 0 10px 10px;
}

.dashboard-media img {
  width: 100%;
  border-radius: 20px;
}

.form-stage {
  height: 100vh;
  display: grid;
  align-items: center;
  padding: 40px 56px;
  background: #f6f9fd;
  overflow: hidden;
}

.form-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.form-nav {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 42px;
}

.form-nav a {
  color: #344054;
  font-size: 15px;
  font-weight: 650;
}

.form-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 38px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: 0;
}

.form-title p {
  margin: 15px 0 0;
  color: var(--body);
  font-size: 16px;
  line-height: 1.65;
}

.cardless-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  margin-top: 24px;
  padding: 0 13px;
  border: 1px solid #dbe6f4;
  border-radius: 999px;
  color: #344054;
  background: var(--soft);
  font-size: 13px;
  font-weight: 750;
}

.cardless-note::before {
  width: 9px;
  height: 9px;
  box-shadow: 0 0 0 5px rgba(49, 206, 54, .12);
}

.form {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: #344054;
  font-size: 14px;
  font-weight: 750;
}

.field input {
  width: 100%;
  height: 56px;
  border: 1px solid #cfdbea;
  border-radius: 14px;
  outline: 0;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.field input::placeholder {
  color: #9aa7b7;
}

.field input:focus,
.otp-digit:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(21,114,232,.11);
}

.signup-page .iti {
  width: 100%;
}

.signup-page .iti input {
  width: 100%;
  padding-left: 62px !important;
  padding-right: 44px !important;
}

.signup-page .iti__flag-container {
  padding: 6px !important;
}

.signup-page .iti__selected-flag {
  padding: 0 8px 0 10px;
  border-radius: 10px;
}

.signup-page .iti__country-list {
  z-index: 20;
  width: min(360px, calc(100vw - 48px));
  border-color: #cfdbea;
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .16);
}

.signup-page .iti__country {
  font-size: 14px;
  line-height: 1.35;
}

.field input.phone_check {
  border-color: #31ce36;
  box-shadow: 0 0 0 4px rgba(49, 206, 54, .12);
}

.field input.phone_error {
  border-color: #e95348;
  box-shadow: 0 0 0 4px rgba(233, 83, 72, .11);
}

.submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin-top: 5px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background-image: linear-gradient(90deg, var(--blue-dark) 0 50%, var(--blue) 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  font-size: 16px;
  font-weight: 700 !important;
  line-height: 1;
  cursor: pointer;
  transition: background-position .34s ease;
}

.submit:hover,
.submit:focus {
  background-position: 0 0;
}

.submit:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.legal {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.start-alert {
  margin: 22px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  color: #344054;
  background: #fff;
  border: 1px solid #dbe6f4;
  font-size: 13px;
  line-height: 1.45;
}

.start-alert.is-error {
  color: #8a1f11;
  background: #fff4f2;
  border-color: #ffd2ca;
}

.start-alert.is-ok {
  color: #136c2d;
  background: #f0fff4;
  border-color: #c8f2d0;
}

.otp-form {
  gap: 18px;
}

.otp-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.otp-digit {
  width: 100%;
  height: 58px;
  border: 1px solid #cfdbea;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  font-size: 22px;
  font-weight: 750;
  outline: 0;
}

.resend {
  margin-top: 16px;
  border: 0;
  padding: 0;
  color: var(--blue);
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.resend.is-disabled,
.resend:disabled {
  color: #7d8da1;
  cursor: not-allowed;
}

.install-box {
  display: grid;
  gap: 20px;
}

.install-loader {
  width: 58px;
  height: 58px;
  border: 5px solid #dbe6f4;
  border-top-color: var(--blue);
  border-radius: 999px;
  animation: spin .9s linear infinite;
}

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

@media (max-width: 1180px) {
  .signup-page {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .brand-stage,
  .stage-inner,
  .form-stage {
    height: auto;
    min-height: auto;
  }

  .stage-inner {
    padding: 38px 32px 44px;
  }

  .stage-copy {
    margin: 0;
    padding: 66px 0 42px;
  }

  .dashboard-shell {
    width: 100%;
  }

  .form-stage {
    padding: 54px 32px 68px;
    overflow: visible;
  }

  .form-nav {
    display: none;
  }
}

@media (max-width: 760px) {
  .signup-page {
    display: block;
    min-height: 100vh;
    background: #fff;
  }

  .brand-stage {
    display: none;
  }

  .stage-inner,
  .form-stage {
    padding-right: 24px;
    padding-left: 24px;
  }

  .form-stage {
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .signup-page h1 {
    font-size: 40px;
    line-height: 1.1;
  }

  .stage-copy p {
    font-size: 17px;
    line-height: 1.62;
  }

  .dashboard-shell {
    display: none;
  }

  .form-title h2 {
    font-size: 32px;
  }
}
