.okx-login-body {
  margin: 0;
  min-height: 100vh;
  background: #F7F9FE;
  color: #0E1530;
  font-family: "Plus Jakarta Sans", sans-serif;
  overflow-x: hidden;
}

.okx-login {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 3vh, 32px) 0 clamp(16px, 3vh, 32px);
  box-sizing: border-box;
  overflow: hidden;
}

/* Background layer */
.okx-login-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.okx-login-cloud {
  position: absolute;
  background: #fff;
  border-radius: 40px;
  opacity: 0.85;
}

.okx-login-cloud:before,
.okx-login-cloud:after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 50%;
}

.okx-login-cloud-a { width: 92px; height: 28px; top: 54px; left: 7%; }
.okx-login-cloud-a:before { width: 36px; height: 36px; left: 14px; top: -18px; }
.okx-login-cloud-a:after { width: 26px; height: 26px; left: 42px; top: -12px; }

.okx-login-cloud-b { width: 70px; height: 22px; top: 92px; left: 18%; opacity: 0.7; }
.okx-login-cloud-b:before { width: 26px; height: 26px; left: 12px; top: -14px; }
.okx-login-cloud-b:after { width: 18px; height: 18px; left: 32px; top: -8px; }

.okx-login-cloud-c { width: 110px; height: 30px; top: 36px; right: 8%; }
.okx-login-cloud-c:before { width: 40px; height: 40px; left: 18px; top: -20px; }
.okx-login-cloud-c:after { width: 28px; height: 28px; left: 50px; top: -12px; }

/* Top branding */
.okx-login-brand {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0 0 clamp(12px, 3vh, 28px);
}

.okx-login-brand img {
  display: block;
  height: clamp(40px, 6.5vh, 56px);
  width: auto;
  max-width: min(240px, 60vw);
  object-fit: contain;
}

.okx-login-kicker {
  margin: 0;
  color: #566079;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* Three-part composition */
.okx-login-stage {
  position: relative;
  flex: 0 0 auto;
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(360px, 440px) minmax(240px, 1.1fr);
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
}

.okx-login-story {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: 100%;
  max-width: 290px;
}

.okx-login-story h1 {
  margin: 0 0 12px;
  font-family: Sora, "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 1.18;
  color: #0A1A5C;
  letter-spacing: -0.02em;
}

.okx-login-story h1 span {
  display: block;
  color: #1E40E0;
}

.okx-login-story > p {
  margin: 0 0 clamp(14px, 2.4vh, 22px);
  color: #566079;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.okx-login-story ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8vh, 14px);
}

.okx-login-story li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.okx-login-feat {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #E8EEFF;
  color: #1E40E0;
  font-size: 15px;
}

.okx-login-story strong,
.okx-login-story small {
  display: block;
}

.okx-login-story strong {
  color: #0E1530;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.okx-login-story small {
  margin-top: 2px;
  color: #566079;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.35;
}

/* Login card */
.okx-login-card {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 440px;
  justify-self: center;
  background: #fff;
  border: 1px solid #E2E7F1;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(14, 21, 48, 0.05);
}

.okx-login-card-head {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.6vh, 24px) 28px clamp(26px, 3.6vh, 34px);
  border-radius: 20px 20px 0 0;
  background: #E8EEFF;
}

.okx-login-card-head h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 4px;
  font-family: Sora, "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: #0E1530;
}

.okx-login-card-head p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 230px;
  color: #566079;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
}

.okx-login-chart {
  position: absolute;
  right: 22px;
  bottom: 12px;
  width: 92px;
  height: 56px;
  opacity: 0.22;
}

.okx-login-chart rect {
  fill: #1E40E0;
}

.okx-login-badge {
  position: relative;
  z-index: 2;
  width: 60px;
  height: 60px;
  margin: -30px auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(14, 21, 48, 0.08);
}

.okx-login-badge img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.okx-login-form {
  padding: 4px 28px clamp(18px, 3vh, 26px);
}

.okx-login-field {
  margin-bottom: clamp(10px, 1.6vh, 14px);
}

.okx-login-field label {
  display: block;
  margin: 0 0 6px;
  color: #0E1530;
  font-size: 13px;
  font-weight: 700;
}

.okx-login-control {
  position: relative;
  display: flex;
  align-items: center;
}

.okx-login-control > i {
  position: absolute;
  left: 14px;
  color: #566079;
  font-size: 13px;
  pointer-events: none;
}

.okx-login-control input,
.okx-login-control select {
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 44px 0 40px;
  border: 1px solid #E2E7F1;
  border-radius: 10px;
  background: #fff;
  color: #0E1530;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.okx-login-control input::placeholder {
  color: #8B93A7;
  font-weight: 500;
}

.okx-login-control input:focus,
.okx-login-control select:focus {
  border-color: #1E40E0;
  box-shadow: 0 0 0 3px rgba(30, 64, 224, 0.12);
}

.okx-login-control button {
  position: absolute;
  right: 1px;
  top: 1px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-left: 1px solid #E2E7F1;
  border-radius: 0 9px 9px 0;
  background: #F3F5FB;
  color: #566079;
  cursor: pointer;
}

.okx-login-control button:focus-visible {
  outline: 2px solid #1E40E0;
  outline-offset: 1px;
}

.okx-login-error {
  margin: 2px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FDECEE;
  color: #D9263B;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.okx-login-error[hidden] {
  display: none;
}

.okx-login-submit {
  width: 100%;
  height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: #1E40E0;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.okx-login-submit:hover {
  background: #1836C4;
}

.okx-login-submit:focus-visible {
  outline: 2px solid #0A1A5C;
  outline-offset: 2px;
}

.okx-login-submit:disabled {
  cursor: progress;
  opacity: 0.85;
}

/* Right-side logistics scene, confined to its own grid column */
.okx-login-art {
  position: relative;
  z-index: 1;
  align-self: end;
  min-width: 0;
  height: clamp(260px, 56vh, 480px);
  pointer-events: none;
  user-select: none;
}

.okx-login-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%);
  mask-image: linear-gradient(to right, transparent 0, #000 14%);
}

@media (min-width: 1600px) {
  .okx-login-stage {
    grid-template-columns: minmax(260px, 0.9fr) minmax(400px, 460px) minmax(300px, 1.1fr);
  }

  .okx-login-story {
    max-width: 320px;
  }

  .okx-login-story h1 {
    font-size: 34px;
  }

  .okx-login-card {
    max-width: 460px;
  }

  .okx-login-brand img {
    height: 64px;
  }
}

/* Laptop: shrink side columns before the card */
@media (max-width: 1365px) {
  .okx-login-stage {
    width: calc(100% - 48px);
    grid-template-columns: minmax(200px, 0.8fr) minmax(360px, 420px) minmax(220px, 1fr);
  }
}

/* Tablet: card with short intro, no illustration */
@media (max-width: 1099px) {
  .okx-login-art,
  .okx-login-story ul {
    display: none;
  }

  .okx-login-stage {
    flex: 0 0 auto;
    width: calc(100% - 40px);
    grid-template-columns: minmax(0, 440px);
    justify-content: center;
    align-content: start;
    gap: 16px;
  }

  .okx-login-story {
    justify-self: center;
    max-width: 440px;
    text-align: center;
  }

  .okx-login-story h1 br {
    display: none;
  }
}

/* Mobile: branding and card only */
@media (max-width: 767px) {
  .okx-login {
    padding: 20px 0 24px;
  }

  .okx-login-stage {
    width: calc(100% - 32px);
  }

  .okx-login-story,
  .okx-login-cloud-a,
  .okx-login-cloud-b {
    display: none;
  }

  .okx-login-card-head,
  .okx-login-form {
    padding-left: 20px;
    padding-right: 20px;
  }

  .okx-login-chart {
    width: 72px;
    right: 14px;
  }
}
