/* Forgot password — polished traveler auth surface (theme-aware via --tx-primary). */

.tx-forgot {
  --tx-forgot-ink: #152033;
  --tx-forgot-muted: #5b6577;
  --tx-forgot-line: rgba(21, 32, 51, 0.1);
  --tx-forgot-panel: #ffffff;
  --tx-forgot-soft: rgba(var(--tx-primary-rgb, 220, 53, 69), 0.1);
  --tx-forgot-radius: 1.25rem;
  position: relative;
  isolation: isolate;
  padding: clamp(1.25rem, 3vw, 2.75rem) 0 clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 8% 12%, rgba(var(--tx-primary-rgb, 220, 53, 69), 0.16), transparent 60%),
    radial-gradient(ellipse 50% 40% at 92% 88%, rgba(21, 32, 51, 0.08), transparent 62%),
    linear-gradient(165deg, #f4f6f9 0%, #eef1f5 48%, #f7f8fa 100%);
}

.tx-forgot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(21, 32, 51, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 32, 51, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, #000 20%, transparent 75%);
}

.tx-forgot__shell {
  position: relative;
  z-index: 1;
  width: min(100% - 1.5rem, 980px);
  margin-inline: auto;
}

.tx-forgot__panel {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--tx-forgot-radius);
  overflow: hidden;
  background: var(--tx-forgot-panel);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 18px 48px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(21, 32, 51, 0.06);
  animation: tx-forgot-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes tx-forgot-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tx-forgot__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  color: #f8fafc;
  background:
    linear-gradient(155deg, rgba(15, 23, 42, 0.92) 0%, rgba(21, 32, 51, 0.82) 48%, rgba(var(--tx-primary-rgb, 220, 53, 69), 0.78) 100%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.14), transparent 42%);
  overflow: hidden;
  min-height: 210px;
}

.tx-forgot__brand::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  bottom: -70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.tx-forgot__brand-top,
.tx-forgot__brand-copy,
.tx-forgot__points {
  position: relative;
  z-index: 1;
}

.tx-forgot__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.tx-forgot__brand-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.tx-forgot__brand-text {
  margin: 0;
  max-width: 28ch;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.86);
}

.tx-forgot__steps {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tx-forgot__steps li {
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(248, 250, 252, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tx-forgot__steps li.is-active {
  color: #fff;
  background: rgba(var(--tx-primary-rgb, 220, 53, 69), 0.55);
  border-color: rgba(255, 255, 255, 0.28);
}

.tx-forgot__steps li.is-done {
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(110, 231, 183, 0.35);
}

.tx-forgot__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.tx-forgot__points li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(248, 250, 252, 0.92);
}

.tx-forgot__points li i {
  margin-top: 0.12rem;
  color: #7dd3c7;
  flex-shrink: 0;
}

.tx-forgot__form-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.35rem, 3.2vw, 2.4rem);
  background: #fff;
  animation: tx-forgot-fade 0.65s ease 0.08s both;
}

@keyframes tx-forgot-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.tx-forgot__icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--tx-primary, #dc3545);
  background: var(--tx-forgot-soft);
  box-shadow: inset 0 0 0 1px rgba(var(--tx-primary-rgb, 220, 53, 69), 0.14);
  animation: tx-forgot-pulse 2.4s ease-in-out infinite;
}

.tx-forgot__icon i {
  font-size: 1.35rem;
}

@keyframes tx-forgot-pulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tx-forgot__panel,
  .tx-forgot__form-wrap,
  .tx-forgot__icon {
    animation: none;
  }
}

.tx-forgot__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tx-forgot-ink);
}

.tx-forgot__subtitle {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--tx-forgot-muted);
}

.tx-forgot__alert {
  border: 0;
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 1.1rem;
}

.tx-forgot__alert--success {
  color: #0f5132;
  background: #e8f7ef;
  box-shadow: inset 0 0 0 1px rgba(25, 135, 84, 0.16);
}

.tx-forgot__alert--danger {
  color: #842029;
  background: #fdebec;
  box-shadow: inset 0 0 0 1px rgba(220, 53, 69, 0.16);
}

.tx-forgot__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--tx-forgot-ink);
}

.tx-forgot__field {
  position: relative;
  margin-bottom: 1.15rem;
}

.tx-forgot__field .input-icon-addon {
  color: var(--tx-forgot-muted);
}

.tx-forgot__field .form-control {
  min-height: 3.15rem;
  border-radius: 0.85rem;
  border-color: var(--tx-forgot-line);
  background: #f8fafc;
  font-size: 0.98rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tx-forgot__field .form-control:hover {
  background: #fff;
  border-color: rgba(var(--tx-primary-rgb, 220, 53, 69), 0.35);
}

.tx-forgot__field .form-control:focus {
  background: #fff;
  border-color: var(--tx-primary, #dc3545);
  box-shadow: 0 0 0 3px rgba(var(--tx-primary-rgb, 220, 53, 69), 0.18);
}

.tx-forgot__submit {
  min-height: 3.2rem;
  border-radius: 999px;
  font-weight: 650;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 24px -10px rgba(var(--tx-primary-rgb, 220, 53, 69), 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.tx-forgot__submit:hover,
.tx-forgot__submit:focus-visible {
  transform: translateY(-1px);
  filter: brightness(0.98);
  box-shadow: 0 16px 28px -10px rgba(var(--tx-primary-rgb, 220, 53, 69), 0.6);
}

.tx-forgot__submit:active {
  transform: translateY(0);
}

.tx-forgot__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  margin-top: 1.15rem;
  font-size: 0.9rem;
  color: var(--tx-forgot-muted);
}

.tx-forgot__meta a {
  font-weight: 650;
  text-decoration: none;
}

.tx-forgot__meta a:hover,
.tx-forgot__meta a:focus-visible {
  text-decoration: underline;
}

.tx-forgot__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: #6b7280;
}

.tx-forgot__secure i {
  color: var(--tx-primary, #dc3545);
}

.tx-forgot__otp {
  letter-spacing: 0.35em;
  font-weight: 700;
  text-align: center;
  font-size: 1.2rem !important;
}

.tx-forgot__resend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.tx-forgot__resend .btn:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.tx-forgot__cooldown {
  font-size: 0.84rem;
  color: var(--tx-forgot-muted);
}

@media (min-width: 768px) {
  .tx-forgot__panel {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    min-height: 460px;
  }

  .tx-forgot__brand {
    min-height: 100%;
  }
}

@media (max-width: 575.98px) {
  .tx-forgot {
    padding-top: 1rem;
    padding-bottom: 1.75rem;
  }

  .tx-forgot__shell {
    width: min(100% - 1rem, 980px);
  }

  .tx-forgot__panel {
    border-radius: 1rem;
  }

  .tx-forgot__brand {
    min-height: 0;
    gap: 1rem;
  }

  .tx-forgot__points {
    display: none;
  }

  .tx-forgot__brand-text {
    max-width: none;
  }
}
