:root {
  --fh: 'Sora', sans-serif;
  --fb: 'DM Sans', sans-serif;
  --blue: #2563eb;
  --blue2: #3b82f6;
  --cyan: #06b6d4;
  --teal: #0d9488;
}

[data-theme="dark"] {
  --bg: #0a1628;
  --bg2: #0f1f3d;
  --nb: rgba(10, 22, 40, .97);
  --text: #c4d4e8;
  --tm: #5a7a9a;
  --tw: #f0f6ff;
  --bdr: rgba(255, 255, 255, .07);
  --bdr2: rgba(255, 255, 255, .14);
  --ibg: rgba(255, 255, 255, .05);
  --ibdr: rgba(255, 255, 255, .12);
  --ifc: rgba(37, 99, 235, .4);
  --itx: #e8f0fe;
  --iph: #4a6080;
  --div: rgba(255, 255, 255, .08);
  --sbg: rgba(255, 255, 255, .05);
  --sbdr: rgba(255, 255, 255, .1);
  --shv: rgba(255, 255, 255, .1);
  --lbl: #8aacc8;
  --obg: rgba(255, 255, 255, .06);
  --obdr: rgba(255, 255, 255, .14);
  --ofc: rgba(37, 99, 235, .1);
  --card: #111e35;
}

[data-theme="light"] {
  --bg: #f0f4fb;
  --bg2: #e4ecf7;
  --nb: rgba(255, 255, 255, .97);
  --text: #374a6b;
  --tm: #7a90b5;
  --tw: #0f1f3d;
  --bdr: rgba(0, 0, 0, .08);
  --bdr2: rgba(0, 0, 0, .14);
  --ibg: #f8faff;
  --ibdr: rgba(0, 0, 0, .14);
  --ifc: rgba(37, 99, 235, .25);
  --itx: #1a2d4a;
  --iph: #9aafcc;
  --div: rgba(0, 0, 0, .08);
  --sbg: #f5f8ff;
  --sbdr: rgba(0, 0, 0, .1);
  --shv: #eaf0ff;
  --lbl: #4a6a8a;
  --obg: #f0f5ff;
  --obdr: rgba(37, 99, 235, .2);
  --ofc: rgba(37, 99, 235, .06);
  --card: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .35s, color .35s;
}

/* ── NAV ── */
.navbar {
  background: var(--nb);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--bdr);
  padding: .8rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background .35s;
}

.nb-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

.nb-main {
  font-family: var(--fh);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--tw);
  letter-spacing: -.01em;
}

[data-theme="light"] .nb-main {
  color: #0f1f3d;
}

.nb-sub {
  font-size: .6rem;
  color: var(--cyan);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--text);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}

.nav-back:hover {
  color: var(--blue2);
}

.btn-th {
  width: 38px;
  height: 38px;
  background: var(--sbg);
  border: 1px solid var(--sbdr);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: .9rem;
  cursor: pointer;
  transition: color .2s, background .2s;
}

.btn-th:hover {
  color: var(--blue2);
}

/* ── LAYOUT ── */
.aw {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: stretch;
}

/* ── LEFT PANEL ── */
.ap {
  flex: 0 0 46%;
  position: relative;
  overflow: hidden;
  display: none;
}

@media(min-width:992px) {
  .ap {
    display: block;
  }
}

.ap-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1531746790731-6c087fecd65a?w=1200&q=85&fit=crop&crop=faces,top') center 15%/cover no-repeat;
}

.ap-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(8, 18, 50, .92) 0%, rgba(37, 99, 235, .5) 60%, rgba(6, 182, 212, .25) 100%);
}

.ap-ct {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
}

.p-ln {
  font-family: var(--fh);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.p-ls {
  font-size: .65rem;
  color: rgba(6, 182, 212, .9);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.p-tg {
  font-family: var(--fh);
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}

.p-tg em {
  font-style: normal;
  color: var(--cyan);
}

.p-dc {
  font-size: .9rem;
  color: rgba(255, 255, 255, .68);
  line-height: 1.8;
  max-width: 340px;
  margin-bottom: 2.5rem;
}

.p-st {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.sv {
  font-family: var(--fh);
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.sl {
  font-size: .72rem;
  color: rgba(255, 255, 255, .5);
  margin-top: .25rem;
}

.p-tc {
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  padding: 1.5rem;
}

.tc-stars {
  color: #fbbf24;
  font-size: .9rem;
  margin-bottom: .6rem;
}

.tc-text {
  font-size: .85rem;
  color: rgba(255, 255, 255, .82);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1rem;
}

.tc-name {
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
}

.tc-role {
  font-size: .72rem;
  color: rgba(255, 255, 255, .5);
}

.tc-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(37, 99, 235, .3);
  border: 2px solid rgba(37, 99, 235, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── FORM SIDE ── */
.fs {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg);
  transition: background .35s;
  overflow-y: auto;
}

.fw {
  width: 100%;
  max-width: 450px;
}

/* Mobile brand */
.mob-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2rem;
}

.mob-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
}

.mob-name {
  font-family: var(--fh);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--tw);
}

[data-theme="light"] .mob-name {
  color: #0f1f3d;
}

.mob-sub {
  font-size: .62rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .08em;
}

@media(min-width:992px) {
  .mob-brand {
    display: none;
  }
}

/* ── METHOD TABS ── */
.method-tabs {
  display: flex;
  background: var(--sbg);
  border: 1px solid var(--bdr);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 1.75rem;
  gap: 4px;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem 1rem;
  border-radius: 9px;
  border: none;
  font-family: var(--fb);
  font-size: .845rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
  background: transparent;
  color: var(--tm);
}

.tab-btn.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .35);
}

.tab-btn:not(.active):hover {
  background: var(--shv);
  color: var(--tw);
}

[data-theme="light"] .tab-btn:not(.active):hover {
  color: #0f1f3d;
}

/* ── FORM BASE ── */
.form-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(6, 182, 212, .12);
  border: 1px solid rgba(6, 182, 212, .25);
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 600;
  padding: .3rem .85rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1.1rem;
}

.form-title {
  font-family: var(--fh);
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  font-weight: 800;
  color: var(--tw);
  letter-spacing: -.02em;
  margin-bottom: .4rem;
  line-height: 1.15;
}

[data-theme="light"] .form-title {
  color: #0f1f3d;
}

.form-sub {
  font-size: .875rem;
  color: var(--tm);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.form-sub a {
  color: var(--blue2);
  text-decoration: none;
  font-weight: 600;
}

.form-sub a:hover {
  text-decoration: underline;
}

.f-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--lbl);
  margin-bottom: .45rem;
  display: block;
  letter-spacing: .02em;
}

.iw {
  position: relative;
  margin-bottom: 1.2rem;
}

.ii {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tm);
  font-size: 1rem;
  pointer-events: none;
  transition: color .2s;
}

.fc {
  width: 100%;
  background: var(--ibg) !important;
  border: 1.5px solid var(--ibdr) !important;
  border-radius: 10px !important;
  padding: .85rem 1rem .85rem 2.85rem !important;
  color: var(--itx) !important;
  font-size: .9rem !important;
  font-family: var(--fb) !important;
  outline: none !important;
  transition: border-color .2s, box-shadow .2s !important;
}

.fc::placeholder {
  color: var(--iph) !important;
}

.fc:focus {
  border-color: var(--blue2) !important;
  box-shadow: 0 0 0 3px var(--ifc) !important;
}

.iw:focus-within .ii {
  color: var(--blue2);
}

.pw-tog {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tm);
  font-size: 1rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color .2s;
}

.pw-tog:hover {
  color: var(--blue2);
}

.pw-in {
  padding-right: 3rem !important;
}

.f-opts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: .5rem;
}

.f-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
}

.f-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--blue2);
  cursor: pointer;
}

.f-check span {
  font-size: .82rem;
  color: var(--text);
}

.forgot {
  font-size: .82rem;
  color: var(--blue2);
  text-decoration: none;
  font-weight: 500;
}

.forgot:hover {
  text-decoration: underline;
}

/* Submit */
.btn-sub {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: var(--blue);
  color: #fff;
  font-family: var(--fh);
  font-size: .95rem;
  font-weight: 700;
  padding: .95rem 2rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(37, 99, 235, .4);
  letter-spacing: .01em;
  transition: background .2s, transform .15s, box-shadow .2s, opacity .2s;
}

.btn-sub:hover {
  background: var(--blue2);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(37, 99, 235, .5);
}

.btn-sub:active {
  transform: translateY(0);
}

.btn-sub:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Alerts */
.alert-err {
  display: none;
  align-items: center;
  gap: .5rem;
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .25);
  border-radius: 10px;
  padding: .75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: .83rem;
  color: #f87171;
}

.alert-err.show {
  display: flex;
}

.alert-ok {
  display: none;
  align-items: center;
  gap: .5rem;
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .25);
  border-radius: 10px;
  padding: .75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: .83rem;
  color: #34d399;
}

.alert-ok.show {
  display: flex;
}

/* ── OTP STUFF ── */
.otp-info {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  background: rgba(6, 182, 212, .08);
  border: 1px solid rgba(6, 182, 212, .2);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.75rem;
}

.otp-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(6, 182, 212, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--cyan);
}

.otp-info-title {
  font-family: var(--fh);
  font-size: .875rem;
  font-weight: 700;
  color: var(--tw);
  margin-bottom: .2rem;
}

[data-theme="light"] .otp-info-title {
  color: #0f1f3d;
}

.otp-info-sub {
  font-size: .8rem;
  color: var(--tm);
  line-height: 1.6;
}

.otp-hl {
  color: var(--cyan);
  font-weight: 600;
}

.otp-boxes {
  display: flex;
  gap: .65rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.ob {
  width: 56px;
  height: 64px;
  background: var(--obg);
  border: 2px solid var(--obdr);
  border-radius: 12px;
  font-family: var(--fh);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--tw);
  text-align: center;
  outline: none;
  caret-color: var(--blue2);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .15s;
}

[data-theme="light"] .ob {
  color: #0f1f3d;
}

.ob::-webkit-outer-spin-button,
.ob::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.ob:focus {
  border-color: var(--blue2);
  background: var(--ofc);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .2);
  transform: scale(1.06);
}

.ob.filled {
  border-color: var(--teal);
}

.ob.err {
  border-color: #ef4444 !important;
  animation: shake .4s ease;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-5px);
  }

  40% {
    transform: translateX(5px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

.timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: .5rem;
}

.timer-lbl {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  color: var(--tm);
}

.timer-val {
  font-family: var(--fh);
  font-weight: 700;
  color: var(--blue2);
  font-size: .9rem;
  min-width: 2.8rem;
}

.timer-val.red {
  color: #ef4444;
}

.btn-resend {
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue2);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color .2s;
}

.btn-resend:hover {
  text-decoration: underline;
}

.btn-resend:disabled {
  color: var(--tm);
  cursor: not-allowed;
  text-decoration: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--tm);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-top: 1rem;
  transition: color .2s;
}

.back-link:hover {
  color: var(--blue2);
}

/* Step dots */
.step-dots {
  display: flex;
  gap: .5rem;
  margin-bottom: 2rem;
}

.dot {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--sbdr);
  transition: background .4s;
}

.dot.on {
  background: var(--blue2);
}

.dot.done {
  background: var(--teal);
}

/* Divider */
.or-div {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--tm);
  font-size: .78rem;
}

.or-div::before,
.or-div::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--div);
}

/* Footer bits */
.secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.25rem;
  color: var(--tm);
  font-size: .76rem;
}

.secure i {
  color: var(--teal);
}

.sw-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: .875rem;
  color: var(--tm);
}

.sw-link a {
  color: var(--blue2);
  font-weight: 600;
  text-decoration: none;
}

.sw-link a:hover {
  text-decoration: underline;
}

.trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--div);
}

.ti {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  color: var(--tm);
}

.ti i {
  font-size: .85rem;
  color: var(--teal);
}

*,
*::before,
*::after {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

.ob,
.btn-sub,
.tab-btn {
  transition: background .2s, border-color .2s, box-shadow .2s, transform .15s, opacity .2s, color .2s !important;
}

.fc {
  transition: border-color .2s, box-shadow .2s !important;
}

@media(max-width:575px) {
  .fs {
    padding: 2rem 1.25rem;
    align-items: flex-start;
  }

  .form-title {
    font-size: 1.45rem;
  }

  .ob {
    width: 42px;
    height: 56px;
    font-size: 1.3rem;
    border-radius: 10px;
  }

  .otp-boxes {
    gap: .4rem;
  }
}

@media(max-width:380px) {
  .ob {
    width: 36px;
    height: 50px;
    font-size: 1.1rem;
  }

  .otp-boxes {
    gap: .3rem;
  }

  .tab-btn {
    font-size: .78rem;
    padding: .6rem .6rem;
  }
}