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

:root {
  --purple: #9810FA;
  --main: #500EAF;
  --text: #1a1a2e;
  --text-mid: #4b5563;
  --text-light: #9ca3af;
  --white: #ffffff;
  --bg-input: #f3f4f6;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 12px 48px rgba(0, 0, 0, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Satoshi', sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--white);
}

a {
  text-decoration: none;
}

/* ════════════════════════════════════════
   NAVBAR (same styles as login.css)
════════════════════════════════════════ */
.login-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 62px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.login-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--purple);
}

.login-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #9810FA, #500EAF);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-nav-pills {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-nav-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 24px;
  border: 1.5px solid var(--main);
  color: var(--main);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.login-nav-pill:hover {
  background: rgba(74, 108, 247, 0.06);
}

.login-hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}

.login-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

/* ════════════════════════════════════════
   MAIN — deeper lavender sparkle bg
════════════════════════════════════════ */
.otp-main {
  position: relative;
  min-height: calc(100vh - 62px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 60px;
  overflow: hidden;

  background:
    radial-gradient(ellipse 85% 60% at 50% 100%, rgba(155, 110, 240, 0.65) 0%, transparent 65%),
    radial-gradient(ellipse 60% 45% at 15% 85%, rgba(130, 95, 225, 0.30) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 90%, rgba(150, 105, 235, 0.25) 0%, transparent 55%),
    linear-gradient(180deg, #fdfcff 0%, #f4f0fd 30%, #e4d8f8 60%, #c8b2ef 100%);
}

.otp-sparkle-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

@keyframes otpSparkAnim {

  0%,
  100% {
    opacity: 0.12;
    transform: scale(0.65);
  }

  50% {
    opacity: 0.9;
    transform: scale(1);
  }
}

/* ════════════════════════════════════════
   CONTENT
════════════════════════════════════════ */
.otp-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.otp-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 6px;
}

.otp-sub {
  font-size: 0.9rem;
  color: var(--text-mid);
  text-align: center;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}

.otp-sub strong {
  color: var(--text);
}

/* ════════════════════════════════════════
   OTP CARD
════════════════════════════════════════ */
.otp-card {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}

.otp-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
  align-self: flex-start;
}

/* ── OTP boxes ── */
.otp-boxes {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

@keyframes boxShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-5px);
  }

  40%,
  80% {
    transform: translateX(5px);
  }
}

.otp-boxes.shake {
  animation: boxShake 0.4s ease;
}

.otp-box {
  width: 54px;
  height: 56px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  caret-color: var(--purple);
}

.otp-box:focus,
.otp-box.active-box {
  border-color: var(--purple);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(107, 72, 232, 0.12);
}

.otp-box.filled {
  background: var(--white);
  border-color: var(--border);
}

/* ── Verify button ── */
.otp-verify-btn {
  width: 100%;
  padding: 15px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--main) 0%, var(--purple) 100%);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(107, 72, 232, 0.38);
  transition: opacity 0.2s, transform 0.2s;
  align-items:center;
  justify-content: center;
  display: flex;
}

.otp-verify-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ── Resend ── */
.otp-resend {
  font-size: 0.86rem;
  color: var(--text-light);
  text-align: center;
}

.otp-resend strong {
  color: var(--text);
  font-weight: 700;
}

.otp-resend-btn {
  background: none;
  border: none;
  color: var(--main);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.otp-resend-btn:hover {
  color: var(--main);
}

/* ════════════════════════════════════════
   MOBILE  (≤768px)
════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Navbar */
  .login-nav {
    padding: 0 16px;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  .login-nav-logo span {
    font-size: 1rem;
  }

  /* Main: white on top, lavender at bottom */
  .otp-main {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 32px 16px 60px;
    background:
      radial-gradient(ellipse 120% 25% at 50% 110%, rgba(155, 110, 240, 0.45) 0%, transparent 60%),
      linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #f0eafc 78%, #ddd0f5 100%);
  }

  .otp-content {
    align-items: flex-start;
    max-width: 100%;
  }

  .otp-title {
    font-size: 1.5rem;
    text-align: left;
  }

  .otp-sub {
    font-size: 0.87rem;
    text-align: left;
  }

  /* Card */
  .otp-card {
    padding: 22px 18px 22px;
    box-shadow: var(--shadow);
    border-radius: 16px;
    gap: 18px;
    align-items: flex-start;
  }

  /* OTP boxes: slightly smaller on mobile */
  .otp-box {
    width: 46px;
    height: 50px;
    font-size: 1.2rem;
    border-radius: 10px;
  }

  .otp-boxes {
    gap: 8px;
  }

  .otp-verify-btn {
    font-size: 0.95rem;
    padding: 14px;
    align-items: center;
  }

  .otp-resend {
    align-self: center;
  }

  .otp-resend-btn {
    align-self: center;
  }
}

@media (max-width: 380px) {
  .otp-box {
    width: 40px;
    height: 46px;
    font-size: 1.1rem;
  }

  .otp-boxes {
    gap: 6px;
  }

  .otp-title {
    font-size: 1.35rem;
  }
}