:root {
  --auth-blue: #0057d9;
  --auth-blue-dark: #004aca;
  --auth-text: #0c1628;
  --auth-muted: #657086;
  --auth-line: rgba(16, 32, 55, 0.35);
  --auth-white: rgba(255, 255, 255, 0.82);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--auth-text);
  background: #edf6ff;
}

.auth-page {
  position: relative;
  min-height: max(100vh, 720px);
  overflow-x: hidden;
  overflow-y: auto;
  isolation: isolate;
}

.auth-bg,
.auth-bg::after,
.auth-wash {
  position: absolute;
  inset: 0;
}

.auth-bg {
  z-index: -4;
  background-image: var(--auth-bg-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.025);
  transition:
    opacity 720ms ease,
    transform 6200ms ease;
}

.auth-bg::after {
  content: "";
  background:
    radial-gradient(
      circle at 81% 18%,
      rgba(255, 220, 151, 0.62),
      transparent 30%
    ),
    linear-gradient(
      90deg,
      rgba(244, 250, 255, 0.6),
      rgba(255, 255, 255, 0.18) 47%,
      rgba(255, 244, 222, 0.26)
    );
}

.auth-bg-current {
  opacity: 1;
}

.auth-bg-next {
  opacity: 0;
}

.auth-page.is-swapping .auth-bg-current {
  opacity: 0;
  transform: scale(1.055);
}

.auth-page.is-swapping .auth-bg-next {
  opacity: 1;
  transform: scale(1.02);
}

.auth-wash {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100vh;
  min-height: 100svh;
  background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
  backdrop-filter: saturate(1.08);
  pointer-events: none;
}

.stroke-text {
  color: transparent;
  -webkit-text-stroke: 2px #004aca;
}

.auth-destination {
  position: absolute;
  left: clamp(56px, 5vw, 140px);
  top: 50%;
  translate: 0 -50%;
  width: min(40vw, 760px);
  max-width: 830px;
  animation: authSlideIn 2000ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-kicker {
  display: none;
}

.auth-destination h1 {
  margin: 0 0 30px;
  color: var(--auth-blue);
  font-size: clamp(40px, 5.9vw, 90px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  font-family: "Poppins", sans-serif;
}

.auth-destination p:not(.auth-kicker) {
  width: min(760px, 100%);
  margin: 0;
  color: #080d16;
  font-size: clamp(16px, 1.24vw, 24px);
  font-weight: 400;
  line-height: 1.35;
}

.auth-destination.is-changing {
  animation: authTextSwap 2000ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-panel {
  position: absolute;
  top: 50%;
  right: clamp(48px, 10.8vw, 210px);
  translate: 0 -50%;
  width: min(620px, 40vw);
  min-width: 430px;
  max-width: calc(100vw - 40px);
  animation: authPanelIn 2000ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

.auth-view {
  display: none;
}

.auth-view.is-active {
  display: block;
  animation: authPanelIn 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-view[data-auth-view="login"] {
  max-width: 536px;
}

.auth-brand-block {
  margin-bottom: 39px;
}

.auth-brand-block h2 {
  margin: 0 0 10px;
  color: var(--auth-blue);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.auth-brand-block p {
  margin: 0;
  color: #464555;
  font-size: 14px;
  font-weight: 500;
}

.auth-flow-head {
  margin-bottom: 44px;
}

.auth-flow-head h2 {
  color: var(--auth-blue);
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 900;
}

.auth-flow-head p {
  max-width: 590px;
  font-size: 16px;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 24px;
}

.auth-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 26px;
}

.auth-signup-form .auth-field-grid {
  gap: 18px 20px;
}

.auth-field {
  display: grid;
  gap: 10px;
}

.auth-field-full {
  grid-column: 1 / -1;
}

.auth-field > span,
.auth-field-row > span {
  color: #464555;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.auth-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.auth-field a,
.auth-signup a {
  color: var(--auth-blue);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.auth-error {
  display: none;
  color: #e01b1b;
  font-size: 12px;
  font-weight: 600;
}

.auth-field.is-invalid .auth-input-wrap {
  border: 1px solid #f02424;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.auth-field.is-invalid .auth-input-wrap svg,
.auth-field.is-invalid .auth-input-wrap input {
  color: #e01b1b;
}

.auth-field.is-invalid .auth-error {
  display: block;
}

.auth-input-wrap {
  display: flex;
  align-items: center;
  padding: 16px;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f3f4f599;
  box-shadow: 0 18px 38px rgba(32, 58, 106, 0.06);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.auth-input-wrap:focus-within {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 38px rgba(0, 87, 217, 0.15);
  transform: translateY(-1px);
}

.auth-input-wrap svg {
  width: clamp(1.125rem, 0.9375rem + 0.5vw, 1.375rem);
  height: clamp(1.125rem, 0.9375rem + 0.5vw, 1.375rem);
  color: #0a111d;
  stroke-width: 2.35;
  flex: 0 0 auto;
}

.auth-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: #111827;
  font:
    500 14px/1 "Inter",
    sans-serif;
  background: transparent;
}

.auth-phone-wrap {
  min-height: 50px;
  height: 50px;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
}

.auth-phone-wrap input {
  align-self: center;
  height: auto;
  padding: 0 18px;
}

.auth-country-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 78px;
  min-width: 78px;
  height: 100%;
  padding: 0 8px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  background: var(--auth-blue);
  white-space: nowrap;
  flex: 0 0 68px;
}

.auth-country-code svg {
  width: 13px;
  height: 13px;
  color: #ffffff;
  stroke-width: 3;
}

.auth-country-flag {
  width: 22px;
  height: 22px;
}

.auth-country-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-icon-btn {
  display: inline-grid;
  margin-right: 6px;
  padding: 0;
  border: 0;
  place-items: center;
  color: #0a111d;
  background: transparent;
  cursor: pointer;
}

.auth-icon-btn svg {
  margin: 0;
  width: 22px;
  height: 22px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 22px;
  margin-top: -2px;
  color: #101828;
  font-size: 12px;
  font-weight: 600;
}

.auth-terms a {
  color: var(--auth-blue);
  font-weight: 800;
  text-decoration: none;
}

.auth-remember input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--auth-blue);
}

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  margin-top: 3px;
  border: 0;
  border-radius: 32px;
  color: #fff;
  font:
    700 16px/1 "Inter",
    sans-serif;
  background: #004aca;
  box-shadow: 0 20px 34px rgba(0, 86, 217, 0.28);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 38px rgba(0, 86, 217, 0.35);
}

.auth-submit svg {
  width: 22px;
  height: 22px;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 11px;
  margin: 30px 0 30px;
  color: #0d1624;
  font-size: 12px;
  font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--auth-line);
}

.auth-solid-divider {
  display: block;
  height: 1px;
  margin: 46px 0 28px;
  background: var(--auth-line);
}

.auth-solid-divider::before,
.auth-solid-divider::after {
  display: none;
}

.auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  border: 0;
  color: #0f172a;
  font:
    700 14px/1 "Inter",
    sans-serif;
  background: transparent;
  cursor: pointer;
}

.auth-google span {
  color: var(--auth-blue);
  font-size: 23px;
  font-weight: 800;
  font-family: "Inter", sans-serif;
}

.auth-google span img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.auth-signup {
  margin: 40px 0 0;
  text-align: center;
  color: #0c1524;
  font-size: 16px;
  font-weight: 600;
}

.auth-compact-link {
  margin-top: 36px;
}

.auth-compact-link span {
  color: #111827;
}

.auth-flow-view {
  position: relative;
  width: min(100%, 560px);
}

.auth-back {
  position: absolute;
  top: 20px;
  left: -4px;
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  place-items: center;
  color: #111827;
  background: transparent;
  cursor: pointer;
}

.auth-back svg {
  width: 22px;
  height: 22px;
}

.auth-back + .auth-flow-head {
  padding-left: 42px;
}

.auth-help {
  max-width: 430px;
  margin: 54px auto 0;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

.auth-help a {
  color: var(--auth-blue);
  font-weight: 800;
  text-decoration: none;
}

.auth-otp-view {
  width: min(100%, 640px);
}

.auth-otp-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(52px, 1fr));
  gap: 28px;
  margin-bottom: 14px;
}

.auth-otp-grid input {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 10px;
  outline: 0;
  color: #111827;
  font:
    800 24px/1 "Inter",
    sans-serif;
  text-align: center;
  background: #f3f4f599;
  box-shadow: 0 18px 38px rgba(32, 58, 106, 0.06);
}

.auth-otp-grid input:focus {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 1px var(--auth-blue);
}

.auth-text-btn {
  display: block;
  margin: 28px auto 0;
  border: 0;
  color: #111827;
  font:
    500 14px/1 "Inter",
    sans-serif;
  background: transparent;
  cursor: pointer;
}

.auth-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 72px 0 0;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.auth-secure svg {
  width: 15px;
  height: 15px;
}

.auth-footer {
  position: absolute;
  left: clamp(56px, 12.5vw, 240px);
  right: clamp(56px, 11.5vw, 220px);
  bottom: 4vh;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  color: #72809a;
  font-size: 11px;
  font-weight: 500;
}

.auth-footer a {
  color: #72809a;
  text-decoration: none;
}

.auth-footer-brand {
  color: var(--auth-blue) !important;
  font-size: 16px;
  font-weight: 900;
}

.auth-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.auth-footer p {
  margin: 0;
  text-align: right;
}

.kyc-site-frame {
  position: fixed;
  inset: 0;
  z-index: -10;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.auth-page.is-onboarding {
  min-height: 100vh;
  overflow: hidden;
  background: #101010;
}

.auth-page.is-onboarding .auth-bg,
.auth-page.is-onboarding .auth-wash,
.auth-page.is-onboarding .auth-destination,
.auth-page.is-onboarding .auth-panel,
.auth-page.is-onboarding .auth-footer {
  display: none;
}

.auth-page.is-onboarding .kyc-site-frame {
  z-index: -2;
  opacity: 1;
}

.auth-page.is-onboarding::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.64);
}

.kyc-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: auto;
}

.auth-page.is-onboarding .kyc-overlay {
  display: flex;
}

.kyc-modal {
  width: min(890px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
}

.kyc-step {
  display: none;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 24px;
}

.kyc-step.is-active {
  display: block;
}

.auth-page.is-kyc-review .kyc-modal {
  display: none;
}

.kyc-review-modal {
  position: relative;
  width: min(423px, calc(100vw - 20px));
  min-height: 508px;
  padding: 36px 36px 52px;
  border-radius: 12px;
  display: none;
  align-content: start;
  justify-items: center;
  overflow: hidden;
  text-align: center;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.auth-page.is-kyc-review .kyc-review-modal {
  display: grid;
}

.kyc-review-modal::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 75%;
  height: 5px;
  background: #004aca;
}

.kyc-review-visual {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 26px;
  display: grid;
  place-items: center;
}

.kyc-review-icon {
  width: 93px;
  height: 93px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #0050d8;
  background: #eef3fb;
}

.kyc-review-icon svg {
  width: 49px;
  height: 49px;
  stroke-width: 2.4;
}

.kyc-review-badge {
  position: absolute;
  right: 12px;
  bottom: 6px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #0050d8;
  background: #ffffff;
  box-shadow: 0 7px 17px rgba(28, 47, 84, 0.18);
}

.kyc-review-badge svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.6;
}

.kyc-review-modal h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.kyc-review-modal p {
  margin: 0 0 26px;
  color: #44546a;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 500;
}

.kyc-review-time {
  width: 100%;
  min-height: 78px;
  margin-bottom: 28px;
  border: 1.5px solid #0050d8;
  border-radius: 8px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: #111827;
  background: #f2f6ff;
}

.kyc-review-time span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0050d8;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

.kyc-review-time svg {
  width: 14px;
  height: 14px;
}

.kyc-review-time strong {
  color: #111827;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
}

.kyc-review-modal a {
  color: #6a7588;
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
}

.kyc-review-modal a b {
  color: #0050d8;
  font-weight: 800;
}

.kyc-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
}

.kyc-session {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #22160f;
  font-size: 12px;
  font-weight: 600;
  background: #ffe0cc;
}

.kyc-session.blue {
  color: #004aca;
  background: #eef4ff;
  box-shadow: inset 0 0 0 1px #cfe0ff;
}

.kyc-session svg {
  width: 13px;
  height: 13px;
}

.kyc-head {
  margin-bottom: 24px;
}

.kyc-head.center {
  text-align: center;
}

.kyc-head h2 {
  margin: 0 0 6px;
  color: #181c1f;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.05;
}

.kyc-head p {
  margin: 0;
  color: #4b5565;
  font-size: 14px;
  font-weight: 500;
}

.kyc-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 20px;
  color: #424754;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.kyc-section-title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e5e7eb;
}

.kyc-section-title.blue-title {
  color: #004aca;
}

.kyc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 22px;
}

.kyc-personal-grid {
  grid-template-columns: 1fr 1fr;
}

.kyc-personal-grid .kyc-field:nth-child(n + 3) {
  grid-column: span 1;
}

.kyc-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0;
}

.kyc-field {
  display: grid;
  gap: 8px;
  position: relative;
}

.kyc-field span,
.kyc-check span,
.signature-row span {
  color: #424754;
  font-size: 14px;
  font-weight: 600;
}

.kyc-field input,
.kyc-field select,
.signature-row input {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  outline: 0;
  padding: 16px;
  color: #202633;
  font:
    600 14px/1 "Inter",
    sans-serif;
  background: #f0f2f7;
}

.kyc-full-field {
  margin-top: 26px;
}

.kyc-pan-row {
  margin-top: 26px;
}

.kyc-pan-row .kyc-field,
.kyc-upload-field {
  grid-column: 1 / -1;
}

.kyc-upload-field{
  margin-top: 12px;
}

.kyc-phone-input,
.kyc-password-input {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f2f7;
}

.kyc-phone-input button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 74px;
  border: 0;
  color: #fff;
  font: 700 13px/1 "Inter", sans-serif;
  background: #004aca;
}

.kyc-phone-input img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}

.kyc-phone-input svg {
  width: 12px;
  height: 12px;
}

.kyc-phone-input input,
.kyc-password-input input {
  min-width: 0;
  border-radius: 0;
  background: transparent;
}

.kyc-password-input {
  position: relative;
}

.kyc-password-input input {
  padding-right: 44px;
}

.kyc-password-input svg {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  color: #7b8494;
  transform: translateY(-50%);
  pointer-events: none;
}

.kyc-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #697386 50%),
    linear-gradient(135deg, #697386 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}

.kyc-field small,
.kyc-field em {
  color: #ff1717;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.kyc-field > small {
  position: absolute;
  left: 0;
  top: calc(100% + 5px);
  z-index: 1;
}

.kyc-field em {
  color: #5d6678;
}

.kyc-field small svg,
.kyc-field em svg {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
}

.kyc-field.is-invalid input,
.kyc-field.is-invalid select,
.kyc-check.is-invalid input {
  border-color: #f02424;
}

.kyc-check {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: -8px 0 14px;
}

.kyc-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #004aca;
}

.kyc-upload-card,
.kyc-doc-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 42px;
  margin-top: 22px;
  padding: 28px;
  border-radius: 14px;
  background: #f0f2f7;
}

.kyc-upload-card h3 {
  margin: 0 0 8px;
  color: #242832;
  font-size: 20px;
}

.kyc-upload-card p {
  margin: 0 0 24px;
  color: #424754;
  font-size: 14px;
  line-height: 1.55;
}

.kyc-dropzone {
  position: relative;
  display: grid;
  min-height: 168px;
  border: 1px dashed #c8d0df;
  border-radius: 8px;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: #1d2430;
  text-align: center;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.kyc-dropzone-slim {
  min-height: 144px;
  background: #fff;
}

.kyc-dropzone-slim > svg {
  width: 28px;
  height: 28px;
  color: #c3ccdc;
}

.kyc-dropzone-slim strong {
  color: #657087;
  font-size: 12px;
  font-weight: 500;
}

.kyc-dropzone-slim small {
  color: #8b95a6;
  font-size: 11px;
}

.kyc-dropzone.dashed {
  min-height: 160px;
  background: #fbfcff;
  border-color: #9eb1d3;
  border-radius: 10px;
}

.kyc-dropzone input,
.kyc-preview-actions input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.kyc-dropzone > span {
  display: grid;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  place-items: center;
  color: #004aca;
  background: #dfeaff;
}

.kyc-dropzone strong {
  font-size: 16px;
  font-weight: 700;
}

.kyc-dropzone small {
  color: #5f6878;
  font-size: 11px;
  font-weight: 600;
}

.kyc-dropzone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kyc-preview-panel {
  display: grid;
  align-content: end;
  gap: 20px;
}

.kyc-preview {
  display: grid;
  height: 206px;
  border: 1px dashed #d4d9e5;
  border-radius: 8px;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #c4cad8;
  text-align: center;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.7),
    rgba(222, 239, 249, 0.8)
  );
  overflow: hidden;
}

.kyc-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kyc-preview-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.kyc-preview-actions label {
  display: grid;
  border: 1px solid #c2c6d6;
  border-radius: 999px;
  place-items: center;
  color: #424754;
  font-size: 16px;
  font-weight: 700;
  padding: 12px;
  background: #fff;
  cursor: pointer;
}

.kyc-preview-actions .kyc-upload-btn {
  border-color: #004aca;
  color: #fff;
  background: #004aca;
}

.kyc-doc-card {
  align-items: center;
  grid-template-columns: 1fr 1fr;
  margin-top: 28px;
  padding: 34px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.kyc-bank-block {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid #edf0f5;
}

.bank-title {
  margin-top: 0;
  letter-spacing: 0;
  text-transform: none;
}

.bank-title span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #111827;
  font-size: 16px;
  letter-spacing: 0;
}

.bank-title svg {
  width: 18px;
  height: 18px;
  color: #004aca;
}

.kyc-bank-upload-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}

.kyc-bank-upload-grid .kyc-upload-field {
  grid-column: auto;
  margin-top: 0;
}

.kyc-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  margin-top: 40px;
  border: 0;
  border-radius: 999px;
  padding: 16px;
  color: #fff;
  font:
    600 16px/1 "Inter",
    sans-serif;
  letter-spacing: 0.04em;
  background: #004aca;
  box-shadow: 0 16px 30px rgba(0, 74, 202, 0.28);
  cursor: pointer;
}

.kyc-primary svg {
  width: 22px;
  height: 22px;
}

.kyc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  color: #34445c;
  font:
    700 11px/1 "Inter",
    sans-serif;
  background: transparent;
  cursor: pointer;
}

.kyc-back svg {
  width: 17px;
  height: 17px;
}

.kyc-security {
  margin: 24px 0 0;
  color: #3c4250;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
}

.kyc-step.agreement {
  overflow: hidden;
  padding: 0;
}

.kyc-step.agreement.is-active {
  display: flex;
  flex-direction: column;
}

.kyc-agreement-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 48px 50px 34px;
}

.agreement-title {
  margin: 40px 0 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d9dee8;
  text-align: center;
}

.agreement-title h3 {
  margin: 0 0 18px;
  color: #181c1f;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.agreement-title p,
.agreement-foot {
  color: #566174;
  font-size: 12px;
}

.agreement-intro {
  margin: 0 0 22px;
  color: #202633;
  font-size: 14px;
  line-height: 1.6;
}

.agreement-intro b {
  color: #004aca;
}

.agreement-party-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.agreement-party-grid article {
  min-height: 194px;
  padding: 22px;
  border-radius: 10px;
  background: #f0f2f7;
}

.agreement-party-grid span {
  display: block;
  margin-bottom: 14px;
  color: #004aca;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.agreement-party-grid strong,
.agreement-copy h4 {
  color: #181c1f;
  font-size: 16px;
  font-weight: 600;
}

.agreement-party-grid p,
.agreement-party-grid em,
.agreement-copy p {
  color: #303846;
  font-size: 14px;
  line-height: 1.65;
}

.agreement-copy h4 {
  margin: 30px 0 14px;
  padding-left: 18px;
  border-left: 5px solid #004aca;
}

.agreement-foot {
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid #d9dee8;
}

.agreement-bar {
  flex: 0 0 auto;
  padding: 18px 24px;
  background: #e8e8e8;
}

.agreement-bar .kyc-check {
  justify-content: flex-start;
  margin: 0 0 14px;
}

.signature-row {
  display: grid;
  grid-template-columns: 180px 1fr 110px 130px 230px;
  gap: 18px;
  align-items: end;
}

.signature-row > div,
.signature-row label {
  display: grid;
  gap: 8px;
}

.signature-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 8px;
  overflow: hidden;
  background: #f2f4f8;
  padding: 4px;
}

.signature-tabs button {
  padding: 6px 10px;
  border: 0;
  color: #004aca;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  border-radius: 4px;
}

.signature-tabs button + button {
  color: #202633;
  background: #f7f8fb;
}

.signed-box {
  min-height: 50px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fff;
}

.signed-box span {
  display: block;
  color: #7c8494;
  font-size: 9px;
}

.signed-box strong {
  color: #202633;
  font-size: 11px;
}

.sign-box-main {
  display: flex;
  gap: 10px;
}

.agreement-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.agreement-top .kyc-check {
  flex: 1;
  margin: 0;
}

.signature-row {
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  gap: 18px;
  align-items: end;
}

.signature-row > div,
.signature-row label {
  display: grid;
  gap: 8px;
}

@keyframes authSlideIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes authPanelIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes authTextSwap {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  45% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .auth-destination {
    left: 7vw;
    width: 43vw;
  }

  .auth-panel {
    right: 6vw;
    width: min(560px, 46vw);
    min-width: 390px;
  }

  .auth-footer {
    left: 7vw;
    right: 7vw;
  }
}

@media (min-width: 861px) and (max-height: 760px) {
  .auth-page {
    min-height: 760px;
  }

  .auth-destination {
    top: 50%;
  }

  .auth-panel {
    top: 50%;
  }

  .auth-brand-block {
    margin-bottom: 24px;
  }

  .auth-form {
    gap: 16px;
  }

  .auth-field-grid {
    gap: 16px 18px;
  }

  .auth-input-wrap {
    min-height: 50px;
  }

  .auth-divider {
    margin: 22px 0;
  }

  .auth-signup {
    margin-top: 42px;
  }

  .auth-footer {
    bottom: 26px;
  }
}

@media (min-width: 861px) and (max-width: 1020px) {
  .auth-destination {
    left: 44px;
    width: 42vw;
  }

  .auth-destination h1 {
    font-size: clamp(38px, 5.4vw, 62px);
  }

  .auth-destination p:not(.auth-kicker) {
    font-size: 15px;
  }
  /* 
  .auth-panel {
    right: 36px;
    width: min(460px, 45vw);
    min-width: 360px;
  }

  .auth-field-grid {
    grid-template-columns: 1fr;
  } */
}

@media (max-width: 1024px) {
  .auth-page {
    min-height: 100svh;
    display: grid;
    align-content: center;
    padding: 50px 22px 30px;
  }

  .sign-box-main {
    width: 100%;
  }

  .signed-box {
    width: 100%;
  }

  .agreement-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-destination {
    display: none;
  }

  .auth-destination,
  .auth-panel,
  .auth-footer {
    position: relative;
    inset: auto;
    translate: none;
  }

  .auth-destination {
    width: 100%;
    margin: 7vh 0 34px;
  }

  .auth-destination h1 {
    font-size: clamp(48px, 14vw, 72px);
    margin-bottom: 16px;
  }

  .auth-destination p:not(.auth-kicker) {
    font-size: 16px;
    max-width: 520px;
  }

  .auth-panel {
    width: 100%;
    min-width: 0;
    max-width: 620px;
    justify-self: center;
    padding: 24px;
    border-radius: 24px;
  }

  .auth-field-grid {
    grid-template-columns: 1fr;
  }

  .auth-flow-view,
  .auth-otp-view {
    width: 100%;
  }

  .auth-back {
    left: 0;
  }

  .auth-otp-grid {
    gap: 12px;
  }

  .auth-brand-block {
    margin-bottom: 26px;
  }

  .auth-form {
    gap: 18px;
  }

  .auth-divider {
    margin: 20px 0;
  }

  .auth-signup {
    margin-top: 42px;
  }

  .auth-footer {
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    margin-top: 42px;
    text-align: center;
    gap: 20px;
  }

  .auth-footer p {
    text-align: center;
  }

  .auth-footer nav {
    gap: 18px;
    flex-wrap: wrap;
  }

  .kyc-overlay {
    align-items: flex-end;
    padding: 0;
    overflow: hidden;
  }

  .kyc-modal {
    width: 100%;
    max-height: 92svh;
    border-radius: 24px 24px 0 0;
    animation: kycSheetUp 320ms ease both;
  }

  .kyc-review-modal {
    width: min(100% - 20px, 423px);
    min-height: 470px;
    padding: 34px 28px 48px;
    border-radius: 18px;
    align-self: center;
    animation: kycSheetUp 320ms ease both;
  }

  .kyc-review-modal h2 {
    font-size: 22px;
  }

  .kyc-review-time {
    min-height: 76px;
  }

  .kyc-step {
    max-height: 92svh;
    padding: 20px;
  }

  .kyc-head h2 {
    font-size: 18px;
  }

  .kyc-head p {
    font-size: 14px;
  }

  .kyc-topline {
    margin-bottom: 18px;
  }

  .kyc-session {
    font-size: 9px;
    padding: 6px 9px;
  }

  .kyc-grid,
  .kyc-personal-grid,
  .kyc-grid.three,
  .kyc-upload-card,
  .kyc-doc-card,
  .agreement-party-grid,
  .signature-row {
    grid-template-columns: 1fr;
  }

  .kyc-upload-card,
  .kyc-doc-card {
    gap: 22px;
    padding: 22px;
  }

  .kyc-preview-panel {
    align-content: start;
  }

  .kyc-primary {
    min-height: 50px;
    margin-top: 32px;
  }

  .kyc-agreement-scroll {
    max-height: none;
    padding: 26px 18px;
  }

  .agreement-bar {
    padding: 14px;
  }

  .agreement-title {
    margin: 28px 0 22px;
  }

  .agreement-title h3 {
    font-size: 18px;
  }

  .agreement-party-grid {
    gap: 14px;
  }

  .signature-row {
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .auth-page {
    padding: 26px 14px 22px;
  }

  .auth-destination {
    margin: 4vh 0 24px;
  }

  .auth-destination h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .auth-destination p:not(.auth-kicker) {
    font-size: 14px;
  }

  .auth-panel {
    padding: 20px 16px;
  }

  .auth-country-code {
    width: 62px;
    min-width: 62px;
    flex-basis: 62px;
    gap: 5px;
    padding: 0 7px;
  }

  .auth-phone-wrap input {
    padding: 0 12px;
  }

  .auth-flow-head h2 {
    font-size: 24px;
  }

  .auth-flow-head p {
    font-size: 14px;
  }

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

  .auth-otp-grid input {
    min-height: 46px;
    border-radius: 8px;
    font-size: 18px;
  }

  .auth-submit {
    padding: 14px;
  }

  .auth-signup {
    margin-top: 20px;
  }

  .auth-field-row {
    align-items: flex-start;
  }

  .kyc-field input,
  .kyc-field select,
  .signature-row input {
    min-height: 52px;
  }

  .kyc-dropzone {
    min-height: 144px;
  }

  .kyc-preview {
    height: 160px;
  }

  .kyc-preview-actions {
    grid-template-columns: 1fr;
  }
}

@keyframes kycSheetUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
