/* ============================================================
   AIMDUK — Password Reset / OTP UI
   Reuses the existing AIMDUK theme variables from the project.
   ============================================================ */

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.password-reset-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 15px;
  background: var(--grad-hero);
  overflow: hidden;
}

.password-reset-section__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.password-reset-section__orb--one {
  width: 380px;
  height: 380px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(184, 150, 62, .25), transparent 70%);
}

.password-reset-section__orb--two {
  width: 420px;
  height: 420px;
  bottom: -140px;
  right: -120px;
  background: radial-gradient(circle, rgba(184, 150, 62, .18), transparent 70%);
}

.password-reset-card {
  width: 100%;
  max-width: 980px;
  margin: auto;
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.password-reset-card__brand {
  flex: 0 0 42%;
  min-height: 520px;
  padding: 3rem 2.5rem;
  background: var(--grad-maroon);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.password-reset-card__brand::before,
.password-reset-card__brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.password-reset-card__brand::before {
  width: 230px;
  height: 230px;
  top: -100px;
  left: -90px;
  border: 1px solid rgba(255, 255, 255, .10);
}

.password-reset-card__brand::after {
  width: 280px;
  height: 280px;
  bottom: -150px;
  right: -120px;
  border: 1px solid rgba(184, 150, 62, .18);
}

.password-reset-card__brand-mark {
  width: 76px;
  height: 76px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .18);
}

.password-reset-card__brand-mark img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.password-reset-card__brand h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  position: relative;
  z-index: 1;
}

.password-reset-card__brand > .sec-divider {
  width: 100%;
  max-width: 190px;
  margin: .9rem auto 0;
  position: relative;
  z-index: 1;
}

.password-reset-card__brand > p {
  margin: .85rem 0 0;
  font-size: .9rem;
  color: rgba(255, 255, 255, .82);
  position: relative;
  z-index: 1;
}

.password-reset-card__info {
  max-width: 280px;
  margin-top: 2rem;
  padding: .9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  border: 1px solid rgba(184, 150, 62, .35);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .10);
  font-size: .78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .82);
  position: relative;
  z-index: 1;
}

.password-reset-card__info i {
  color: var(--gold-light);
  font-size: 1rem;
  flex-shrink: 0;
}

.password-reset-card__form {
  flex: 1;
  padding: 3rem 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.password-reset-heading {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.6rem;
}

.password-reset-heading__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(123, 28, 46, .08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.password-reset-heading h2 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.15rem;
  font-weight: 700;
}

.password-reset-heading p {
  margin: .25rem 0 0;
  color: var(--text-muted);
  font-size: .78rem;
  line-height: 1.5;
}

.password-reset-field {
  display: flex;
  align-items: center;
  width: 100%;
  gap: .85rem;
  border-bottom: 1.5px solid rgba(184, 150, 62, .3);
  padding: .6rem .1rem;
  margin-bottom: .3rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.password-reset-field:focus-within {
  border-bottom-color: var(--primary);
}

.password-reset-field__icon {
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.password-reset-field input {
  flex: 1;
  border: none;
  outline: none;
  width: 100%;
  min-width: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: .92rem;
  color: var(--text-dark);
  padding: .2rem 0;
}

.password-reset-field input::placeholder {
  color: var(--text-muted);
  opacity: .75;
}

.password-reset-field__toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: color .2s ease;
}

.password-reset-field__toggle:hover {
  color: var(--primary);
}

.password-reset-field--invalid {
  border-bottom-color: #b3261e !important;
}

.password-reset-field--valid {
  border-bottom-color: rgba(40, 125, 72, .55);
}

.password-reset-field__error {
  font-size: .72rem;
  color: #b3261e;
  margin: .25rem 0 .75rem;
  display: none;
}

.password-reset-field__error.is-visible {
  display: block;
}

.password-reset-submit {
  width: 100%;
  padding: 13px 15px;
  margin-top: .65rem;
  font-size: 15px;
  background: var(--grad-maroon);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgba(74, 10, 24, .3);
  transition: var(--transition);
  cursor: pointer;
}

.password-reset-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(74, 10, 24, .4);
}

.password-reset-submit:active,
.password-reset-submit:disabled {
  transform: translateY(0);
}

.password-reset-submit:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.password-reset-back {
  text-align: center;
  margin-top: 1.25rem;
}

.password-reset-back a {
  color: var(--primary);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
}

.password-reset-back a:hover {
  color: var(--gold-deep);
  text-decoration: underline;
}

.otp-input-group {
  display: flex;
  justify-content: center;
  gap: .65rem;
  margin: .8rem 0 .4rem;
}

.otp-input {
  width: 48px;
  height: 56px;
  border: 1.5px solid rgba(184, 150, 62, .35);
  border-radius: 10px;
  outline: none;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.otp-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(123, 28, 46, .10);
  transform: translateY(-1px);
}

.otp-input.is-invalid {
  border-color: #b3261e;
}

.otp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: .8rem 0 1rem;
  font-size: .76rem;
  color: var(--text-muted);
}

.otp-meta button {
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: .76rem;
  font-weight: 700;
  padding: 0;
}

.otp-meta button:not(:disabled):hover {
  text-decoration: underline;
}

.otp-meta button:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: .65;
}

.password-strength {
  margin: .45rem 0 1rem;
}

.password-strength__bar {
  width: 100%;
  height: 5px;
  border-radius: 99px;
  background: #eee;
  overflow: hidden;
}

.password-strength__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width .2s ease;
}

.password-strength > span {
  display: block;
  margin-top: .35rem;
  font-size: .7rem;
  color: var(--text-muted);
}

.password-rules {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: .85rem 1rem;
  background: rgba(123, 28, 46, .035);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem .8rem;
}

.password-rules li {
  font-size: .68rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .35rem;
}

.password-rules li i {
  font-size: .62rem;
}

.password-rules li.is-valid {
  color: #285f3b;
}

.password-rules li.is-valid i::before {
  content: "\f26b";
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .password-reset-section { padding: 25px 15px; }

  .password-reset-card { max-width: 850px; }

  .password-reset-card__brand {
    flex-basis: 40%;
    min-height: 470px;
    padding: 2rem 1.5rem;
  }

  .password-reset-card__form { padding: 2rem 2.25rem; }
}

@media (max-width: 767.98px) {
  .password-reset-section {
    min-height: 100vh;
    padding: 25px 12px;
    align-items: flex-start;
  }

  .password-reset-card {
    flex-direction: column;
    max-width: 520px;
    margin: 10px auto;
  }

  .password-reset-card__brand {
    min-height: auto;
    padding: 1.75rem 1.25rem 1.5rem;
  }

  .password-reset-card__brand-mark {
    width: 62px;
    height: 62px;
    margin-bottom: .8rem;
  }

  .password-reset-card__brand-mark img {
    width: 54px;
    height: 54px;
  }

  .password-reset-card__brand h1 { font-size: 1.7rem; }

  .password-reset-card__info { margin-top: 1.5rem; }

  .password-reset-card__form {
    padding: 1.75rem 1.5rem 1.5rem;
  }

  .otp-input-group { gap: .45rem; }

  .otp-input {
    width: 43px;
    height: 52px;
  }

  .password-rules {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .password-reset-section { padding: 15px 10px; }

  .password-reset-card { border-radius: 16px; }

  .password-reset-card__brand { padding: 1.5rem 1rem; }

  .password-reset-card__form { padding: 1.5rem 1.15rem; }

  .password-reset-card__brand h1 { font-size: 1.5rem; }

  .otp-input-group { gap: .3rem; }

  .otp-input {
    width: 40px;
    height: 48px;
    font-size: 1.15rem;
  }

  .otp-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
