/* Auth pages (auth/*) — modern centered card */

/* Login: calmer mesh — brand teal, no harsh blue blobs */
.auth-bg--dark.auth-bg--login {
  background:
    radial-gradient(ellipse 120% 70% at 50% -30%, rgba(23, 59, 69, 0.32), transparent 52%),
    radial-gradient(1000px 640px at 95% 8%, rgba(23, 59, 69, 0.14), transparent 58%),
    radial-gradient(880px 560px at 5% 92%, rgba(12, 40, 48, 0.35), transparent 58%),
    linear-gradient(165deg, #0f1719 0%, #0a0f11 38%, #0b1214 100%);
  background-attachment: scroll;
}

.auth-bg--dark.auth-bg--login::before {
  top: -160px;
  left: -140px;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle at 42% 38%,
    rgba(23, 59, 69, 0.45) 0%,
    rgba(23, 59, 69, 0.08) 45%,
    transparent 68%
  );
  filter: blur(52px);
  opacity: 0.55;
}

.auth-bg--dark.auth-bg--login::after {
  bottom: -200px;
  right: -160px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle at 35% 40%,
    rgba(18, 52, 62, 0.4) 0%,
    rgba(10, 132, 255, 0.06) 50%,
    transparent 68%
  );
  filter: blur(48px);
  opacity: 0.45;
}

@media (max-width: 575.98px) {
  .auth-bg--dark.auth-bg--login::before,
  .auth-bg--dark.auth-bg--login::after {
    width: 300px;
    height: 300px;
    filter: blur(36px);
    opacity: 0.5;
  }

  .auth-bg--dark.auth-bg--login::before {
    top: -100px;
    left: -80px;
  }

  .auth-bg--dark.auth-bg--login::after {
    bottom: -120px;
    right: -100px;
  }
}

.auth-bg--dark {
  background: radial-gradient(1100px 620px at 12% 8%, rgba(10, 132, 255, 0.22), transparent 56%),
    radial-gradient(980px 560px at 92% 18%, rgba(99, 102, 241, 0.14), transparent 58%),
    radial-gradient(820px 520px at 55% 115%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #070a12 60%, #050814 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

.auth-bg--dark::before,
.auth-bg--dark::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 420px;
  height: 420px;
  border-radius: 9999px;
  filter: blur(26px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

/* Corner color balloons */
.auth-bg--dark::before {
  top: -140px;
  left: -160px;
  background: radial-gradient(circle at 30% 30%, rgba(10, 132, 255, 0.95), rgba(10, 132, 255, 0.0) 65%),
    radial-gradient(circle at 70% 70%, rgba(99, 102, 241, 0.55), rgba(99, 102, 241, 0.0) 70%);
}

.auth-bg--dark::after {
  bottom: -170px;
  right: -180px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.0) 62%),
    radial-gradient(circle at 70% 60%, rgba(10, 132, 255, 0.42), rgba(10, 132, 255, 0.0) 70%);
}

.auth-bg--dark .auth-shell {
  position: relative;
  z-index: 1;
}

@media (max-width: 575.98px) {
  .auth-bg--dark::before,
  .auth-bg--dark::after {
    width: 260px;
    height: 260px;
    filter: blur(22px);
    opacity: 0.85;
  }

  .auth-bg--dark::before {
    top: -110px;
    left: -120px;
  }

  .auth-bg--dark::after {
    bottom: -130px;
    right: -140px;
  }
}

.auth-bg--dark .auth-logo img {
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.28));
}

.auth-bg--dark .auth-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.90));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
}

.auth-bg--dark .auth-footer-link {
  color: rgba(255, 255, 255, 0.82);
}

.auth-bg--dark .auth-footer-link:hover {
  color: rgba(var(--brand-primary-rgb), 0.95);
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 3vw, 32px);
}

.auth-container {
  width: 100%;
  max-width: 520px;
}

.auth-container--wide {
  max-width: 640px;
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  text-decoration: none;
}

.auth-card {
  border-radius: 22px;
  padding: clamp(18px, 3vw, 28px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.88));
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 26px 60px rgba(11, 18, 32, 0.14);
  backdrop-filter: blur(10px);
}

.auth-title {
  font-weight: 950;
  letter-spacing: -0.03em;
}

.auth-subtitle {
  color: rgba(15, 23, 42, 0.62);
}

.auth-note {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.auth-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 950;
  letter-spacing: -0.02em;
  color: rgba(15, 23, 42, 0.86);
}

.auth-badge {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 0.85rem;
  background: rgba(10, 132, 255, 0.10);
  border: 1px solid rgba(10, 132, 255, 0.18);
  color: rgba(10, 132, 255, 0.98);
}

.auth-pin-wrap {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.78);
  padding: 12px 12px 14px;
}

.auth-pin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.auth-pin-title {
  font-weight: 900;
  letter-spacing: -0.01em;
  color: rgba(15, 23, 42, 0.72);
}

.auth-pin-help {
  font-weight: 850;
  text-decoration: none;
  color: rgba(var(--brand-primary-rgb), 0.92);
}

.auth-pin-help:hover {
  color: rgba(var(--brand-primary-rgb), 1);
}

.auth-pin-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.auth-pin-row.auth-pin-row--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 320px;
  margin-inline: auto;
}

.auth-pin-row .otp-input {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.06);
  background: #fff;
  font-size: 1.2rem;
}

.auth-pin-row .otp-input:focus {
  border-color: rgba(var(--brand-primary-rgb), 0.55);
  box-shadow: 0 0 0 0.22rem rgba(var(--brand-primary-rgb), 0.14), 0 14px 26px rgba(15, 23, 42, 0.06);
}

.auth-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.auth-meta .form-check-label {
  color: rgba(15, 23, 42, 0.70);
  font-weight: 750;
}

.auth-actions {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.auth-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(15, 23, 42, 0.70);
  text-decoration: none;
}

.auth-footer-link:hover {
  color: rgba(var(--brand-primary-rgb), 0.95);
}

@media (max-width: 575.98px) {
  .auth-card {
    border-radius: 20px;
  }

  .auth-pin-row {
    gap: 8px;
  }

  .auth-pin-row .otp-input {
    height: 50px;
    border-radius: 14px;
    font-size: 1.1rem;
  }
}

/* —— Login page (professional, aligned with Tolet BD) —— */
.auth-page-login .auth-container--login {
  max-width: 440px;
}

.auth-login-nav {
  margin-bottom: 0.75rem;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.9375rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 0.35rem 0.5rem 0.35rem 0;
  border-radius: 10px;
  transition: color 0.15s ease, background 0.15s ease;
}

.auth-back-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.auth-back-link .bi {
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.95;
}

.auth-logo--login {
  margin-bottom: 1.25rem;
}

.auth-logo--login img {
  height: auto;
  max-height: 48px;
  width: auto;
}

.auth-card--login {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 6px rgba(11, 18, 32, 0.04),
    0 24px 56px rgba(11, 18, 32, 0.12);
}

.auth-bg--dark .auth-card--login {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 252, 0.97) 100%);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.38);
}

.auth-card-accent {
  height: 4px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--brand-primary, #173b45) 0%,
    rgba(10, 132, 255, 0.95) 45%,
    rgba(99, 102, 241, 0.75) 100%
  );
}

.auth-card--login .auth-card-header {
  padding: clamp(1.35rem, 4vw, 1.75rem) clamp(1.25rem, 4vw, 1.75rem) 0.5rem;
}

.auth-login-icon-wrap {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(23, 59, 69, 0.08), rgba(10, 132, 255, 0.1));
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--brand-primary, #173b45);
  font-size: 1.35rem;
}

.auth-login-eyebrow {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.45);
}

.auth-login-title {
  font-size: clamp(1.35rem, 4vw, 1.5rem);
  letter-spacing: -0.035em;
  color: rgba(15, 23, 42, 0.94);
}

.auth-login-lead {
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 32ch;
  margin-inline: auto;
  color: rgba(15, 23, 42, 0.58);
}

.auth-login-trust {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1rem clamp(1.25rem, 4vw, 1.75rem) 1.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.62);
  background: rgba(23, 59, 69, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
}

.auth-login-trust-ico {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: rgba(23, 59, 69, 0.75);
  font-size: 0.95rem;
}

.auth-login-form {
  padding: 0 clamp(1.25rem, 4vw, 1.75rem) clamp(1.35rem, 4vw, 1.75rem);
}

/* Password visibility toggle (eye) — matches ui-outline padding */
.auth-page-login .ui-outline--password,
.auth-page-register .ui-outline--password {
  position: relative;
}

.auth-page-login .ui-outline--password .form-control,
.auth-page-register .ui-outline--password .form-control {
  padding-right: 3rem;
}

.auth-page-login .ui-outline--password .auth-password-toggle,
.auth-page-register .ui-outline--password .auth-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(15, 23, 42, 0.45);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.auth-page-login .ui-outline--password .auth-password-toggle:hover,
.auth-page-register .ui-outline--password .auth-password-toggle:hover {
  color: var(--brand-primary, #173b45);
  background: rgba(23, 59, 69, 0.06);
}

.auth-page-login .ui-outline--password .auth-password-toggle:focus-visible,
.auth-page-register .ui-outline--password .auth-password-toggle:focus-visible {
  outline: 2px solid rgba(23, 59, 69, 0.35);
  outline-offset: 2px;
}

.auth-page-login .ui-outline--password .auth-password-toggle .bi,
.auth-page-register .ui-outline--password .auth-password-toggle .bi {
  font-size: 1.2rem;
  pointer-events: none;
}

.auth-card--login .auth-meta {
  margin-top: 0.25rem;
}

/* One row on mobile: link can shrink / slightly smaller text on narrow viewports */
.auth-card--login .auth-meta .auth-inline-link {
  min-width: 0;
  font-size: clamp(0.75rem, 3.2vw, 0.875rem);
  line-height: 1.35;
}

.auth-inline-link {
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--brand-primary, #173b45);
  text-decoration: none;
}

.auth-inline-link:hover {
  text-decoration: underline;
  color: #12424d;
}

.auth-login-submit {
  font-weight: 750;
  letter-spacing: -0.02em;
  border-radius: 14px;
  padding-block: 0.65rem;
  box-shadow: 0 4px 14px rgba(23, 59, 69, 0.25);
}

.auth-login-submit:hover {
  box-shadow: 0 6px 20px rgba(23, 59, 69, 0.3);
}

.auth-login-register {
  font-size: 0.9375rem;
}

.auth-login-register-link {
  font-weight: 750;
  color: var(--brand-primary, #173b45);
  text-decoration: none;
  margin-inline-start: 0.35rem;
}

.auth-login-register-link:hover {
  text-decoration: underline;
}

.auth-login-bottom {
  margin-top: 1.5rem;
  text-align: center;
}

.auth-footer-link--soft {
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-footer-link--soft:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* —— Register page (matches login shell) —— */
.auth-page-register .auth-container--register {
  max-width: 520px;
}

.auth-register-form {
  padding: 0 clamp(1.25rem, 4vw, 1.75rem) clamp(1.35rem, 4vw, 1.75rem);
}

.auth-register-progress-wrap {
  margin: 0 clamp(1.25rem, 4vw, 1.75rem) 1.25rem;
}

.reg-step {
  display: none;
  transition: opacity 0.3s ease;
}

.reg-step.active {
  display: block;
  animation: regFadeIn 0.35s ease;
}

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

.reg-phone-display {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.9);
}

.reg-countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: rgba(23, 59, 69, 0.95);
}

.reg-countdown.expired {
  color: rgba(148, 163, 184, 0.9);
}

.reg-resend-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.reg-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.12), transparent);
  margin: 1.25rem 0;
}

.auth-page-register .reg-progress {
  height: 4px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.auth-page-register .reg-progress-bar {
  height: 100%;
  background: linear-gradient(
    90deg,
    #173b45 0%,
    rgba(10, 132, 255, 0.88) 50%,
    rgba(99, 102, 241, 0.65) 100%
  );
  border-radius: 999px;
  transition: width 0.4s ease;
}

