/* ============================================================
   HowCan-I-Help Login
   Clean Glassmorphism + Large Soft Circle Depth
   80% White / 20% HCiH Brand Color
   File: /assets/css/login.css
   ============================================================ */

:root {
  --hcih-primary: #ffb5a8;
  --hcih-primary-dark: #e8897f;
  --hcih-primary-deep: #d97870;
  --hcih-primary-soft: #fdd6cf;

  --hcih-white: #ffffff;
  --hcih-cream: #fffaf8;
  --hcih-blush: #fff2ef;
  --hcih-mist: #f7eeee;

  --hcih-ink: #5f5f60;
  --hcih-ink-dark: #3f3f40;
  --hcih-muted: #8d8785;

  --hcih-border: rgba(63, 63, 64, 0.10);
  --hcih-border-soft: rgba(63, 63, 64, 0.07);
  --hcih-border-peach: rgba(232, 137, 127, 0.18);

  --glass-white: rgba(255, 255, 255, 0.44);
  --glass-white-soft: rgba(255, 255, 255, 0.28);
  --glass-white-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.78);

  --shadow-page: 0 30px 90px rgba(63, 63, 64, 0.10);
  --shadow-card: 0 34px 95px rgba(63, 63, 64, 0.15);
  --shadow-card-hover: 0 42px 110px rgba(63, 63, 64, 0.18);
  --shadow-brand: 0 18px 42px rgba(232, 137, 127, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.auth-body {
  min-height: 100vh;
  margin: 0;
  color: var(--hcih-ink);
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 181, 168, 0.08), transparent 26%),
    radial-gradient(circle at 90% 86%, rgba(253, 214, 207, 0.10), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #fffdfc 48%, #fff8f6 100%);
  position: relative;
  overflow-x: hidden;
}

/* ============================================================
   Page atmosphere
   ============================================================ */

body.auth-body::before,
body.auth-body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

body.auth-body::before {
  width: 520px;
  height: 520px;
  left: -250px;
  top: -190px;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.94), transparent 0 18%),
    radial-gradient(circle at 48% 46%, rgba(255, 181, 168, 0.18), transparent 54%),
    radial-gradient(circle at 78% 74%, rgba(253, 214, 207, 0.12), transparent 68%);
  opacity: 0.46;
}

body.auth-body::after {
  width: 500px;
  height: 500px;
  right: -240px;
  bottom: -190px;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.94), transparent 0 18%),
    radial-gradient(circle at 48% 46%, rgba(253, 214, 207, 0.18), transparent 54%),
    radial-gradient(circle at 78% 74%, rgba(255, 181, 168, 0.11), transparent 68%);
  opacity: 0.44;
}

/* ============================================================
   Layout
   ============================================================ */

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  background: transparent;
  isolation: isolate;
}

.auth-shell::before {
  content: "";
  position: fixed;
  width: min(48vw, 560px);
  height: min(48vw, 560px);
  top: 9%;
  left: 23%;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.94), transparent 0 18%),
    radial-gradient(circle at 48% 46%, rgba(255, 181, 168, 0.16), transparent 54%),
    radial-gradient(circle at 78% 74%, rgba(253, 214, 207, 0.11), transparent 66%);
  opacity: 0.36;
  animation: hcihBubbleFloatA 18s ease-in-out infinite;
}

@keyframes hcihBubbleFloatA {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(18px, -16px, 0) scale(1.03);
  }
}

/* ============================================================
   Left visual panel
   ============================================================ */

.auth-visual {
  position: relative;
  min-height: 100vh;
  padding: clamp(1.4rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.80), rgba(255, 250, 248, 0.58));
  border-right: 1px solid rgba(63, 63, 64, 0.06);
}

.auth-visual::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -280px;
  top: -190px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.96), transparent 0 18%),
    radial-gradient(circle at 48% 46%, rgba(255, 181, 168, 0.16), transparent 54%),
    radial-gradient(circle at 78% 74%, rgba(253, 214, 207, 0.12), transparent 66%);
  pointer-events: none;
  opacity: 0.46;
}

.auth-visual::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  left: -250px;
  bottom: -230px;
  border-radius: 999px;
  border: 52px solid rgba(253, 214, 207, 0.12);
  box-shadow:
    inset 0 0 80px rgba(255, 181, 168, 0.08),
    0 0 80px rgba(253, 214, 207, 0.12);
  pointer-events: none;
}

.auth-brand,
.auth-copy,
.auth-visual-footer {
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  width: fit-content;
  color: var(--hcih-ink-dark);
  text-decoration: none;
}

.auth-brand:hover {
  color: var(--hcih-ink-dark);
}

.auth-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  padding: 8px;
  border: 1px solid rgba(232, 137, 127, 0.12);
  box-shadow:
    0 14px 34px rgba(232, 137, 127, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.auth-brand:hover img {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow:
    0 20px 46px rgba(232, 137, 127, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.auth-brand span {
  font-family: "Quicksand", system-ui, sans-serif;
  font-size: 1.26rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.auth-copy {
  max-width: 690px;
  padding: 3rem 0;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(232, 137, 127, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--hcih-primary-deep);
  border-radius: 999px;
  padding: 0.46rem 0.9rem;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.15rem;
  box-shadow: 0 10px 24px rgba(63, 63, 64, 0.035);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.auth-copy h1 {
  margin: 0;
  color: var(--hcih-ink-dark);
  font-family: "Quicksand", system-ui, sans-serif;
  font-size: clamp(2.1rem, 4.9vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.058em;
  font-weight: 800;
  max-width: 760px;
}

.auth-copy p {
  margin: 1rem 0 0;
  max-width: 610px;
  color: rgba(95, 95, 96, 0.72);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 650;
}

.auth-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.35rem;
  max-width: 720px;
}

.auth-highlight {
  border: 1px solid rgba(63, 63, 64, 0.07);
  background: rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  padding: 1rem;
  color: var(--hcih-ink);
  box-shadow:
    0 14px 32px rgba(63, 63, 64, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.auth-highlight:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 137, 127, 0.16);
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    0 20px 42px rgba(63, 63, 64, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.auth-highlight i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
  color: var(--hcih-primary-deep);
  background: rgba(255, 247, 244, 0.82);
  border-radius: 14px;
  border: 1px solid rgba(232, 137, 127, 0.10);
}

.auth-highlight strong {
  display: block;
  color: var(--hcih-ink-dark);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.25;
}

.auth-visual-footer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(95, 95, 96, 0.68);
  font-size: 0.84rem;
  font-weight: 800;
}

.auth-visual-footer i {
  color: var(--hcih-primary-deep);
}

/* ============================================================
   Right login panel / glass card
   ============================================================ */

.auth-main {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 3.2rem);
  background: transparent;
  isolation: isolate;
  overflow: visible;
}

/*
  Large circle directly behind the card.
  Bigger than the card so the glass effect is visible across the card.
*/
.auth-main::before {
  content: "";
  position: absolute;
  width: min(82vw, 820px);
  height: min(82vw, 820px);
  left: 43%;
  top: 50%;
  transform: translate(-50%, -53%);
  border-radius: 999px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.98;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.98), transparent 0 15%),
    radial-gradient(circle at 44% 43%, rgba(255, 181, 168, 0.56), transparent 49%),
    radial-gradient(circle at 76% 75%, rgba(253, 214, 207, 0.36), transparent 67%);
  animation: hcihLoginDepthFloatA 18s ease-in-out infinite;
}

.auth-main::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  left: 72%;
  top: 68%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.66;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.95), transparent 0 18%),
    radial-gradient(circle at 48% 46%, rgba(253, 214, 207, 0.40), transparent 54%),
    radial-gradient(circle at 76% 74%, rgba(255, 181, 168, 0.22), transparent 66%);
  animation: hcihLoginDepthFloatB 22s ease-in-out infinite;
}

@keyframes hcihLoginDepthFloatA {
  0%,
  100% {
    transform: translate(-50%, -53%) scale(1);
  }

  50% {
    transform: translate(-47%, -56%) scale(1.025);
  }
}

@keyframes hcihLoginDepthFloatB {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-54%, -47%) scale(0.98);
  }
}

.auth-card {
  position: relative;
  z-index: 3;
  width: min(100%, 520px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.22)),
    radial-gradient(circle at top right, rgba(255, 181, 168, 0.05), transparent 42%);
  border-radius: 36px;
  padding: clamp(1.35rem, 3vw, 2.35rem);
  box-shadow:
    0 34px 95px rgba(63, 63, 64, 0.15),
    0 14px 42px rgba(232, 137, 127, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(42px) saturate(180%);
  -webkit-backdrop-filter: blur(42px) saturate(180%);
  overflow: hidden;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease;
}

.auth-card:hover,
.auth-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.88);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.28)),
    radial-gradient(circle at top right, rgba(255, 181, 168, 0.06), transparent 42%);
  box-shadow:
    0 42px 110px rgba(63, 63, 64, 0.18),
    0 18px 48px rgba(232, 137, 127, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(255, 255, 255, 0.30);
}

.auth-card::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -120px;
  top: -120px;
  border-radius: 999px;
  opacity: 0.72;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.84), transparent 0 17%),
    radial-gradient(circle at 48% 46%, rgba(255, 181, 168, 0.12), transparent 56%);
  pointer-events: none;
}

.auth-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 35px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 18px 42px rgba(255, 255, 255, 0.20);
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

.auth-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.46rem 0.82rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(232, 137, 127, 0.14);
  color: var(--hcih-primary-deep);
  font-weight: 900;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
  box-shadow: 0 10px 24px rgba(63, 63, 64, 0.035);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.auth-card h2 {
  margin: 0;
  color: var(--hcih-ink-dark);
  font-family: "Quicksand", system-ui, sans-serif;
  font-weight: 800;
  font-size: 2.18rem;
  letter-spacing: -0.052em;
  line-height: 1.05;
}

.auth-card p {
  margin: 0.7rem 0 0;
  color: rgba(95, 95, 96, 0.74);
  line-height: 1.65;
  font-weight: 650;
}

.auth-card .alert {
  border-radius: 18px;
  padding: 0.9rem 1rem;
  margin-top: 1.15rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.alert-danger {
  background: rgba(255, 243, 242, 0.84);
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.12) !important;
}

.alert-success {
  background: rgba(240, 253, 244, 0.84);
  color: #15803d;
  border-color: rgba(21, 128, 61, 0.12) !important;
}

.auth-form {
  margin-top: 1.25rem;
}

.form-label {
  color: var(--hcih-ink-dark);
  font-weight: 900;
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
}

.auth-control {
  min-height: 55px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.68);
  color: var(--hcih-ink-dark);
  font-weight: 750;
  padding-left: 1rem;
  padding-right: 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.90),
    0 10px 24px rgba(63, 63, 64, 0.035);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.auth-control::placeholder {
  color: rgba(141, 135, 133, 0.72);
  font-weight: 650;
}

.auth-control:hover {
  background: rgba(255, 255, 255, 0.78);
}

.auth-control:focus {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(232, 137, 127, 0.44);
  box-shadow:
    0 0 0 0.22rem rgba(255, 181, 168, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.password-wrap {
  position: relative;
}

.password-wrap .auth-control {
  padding-right: 3.2rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--hcih-muted);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.password-toggle:hover {
  background: rgba(255, 247, 244, 0.82);
  color: var(--hcih-primary-deep);
  transform: translateY(-50%) scale(1.05);
}

.auth-submit {
  position: relative;
  min-height: 55px;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--hcih-primary), var(--hcih-primary-dark));
  color: #ffffff;
  font-weight: 900;
  box-shadow:
    0 16px 34px rgba(232, 137, 127, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.auth-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.34) 45%, transparent 70%);
  transition: transform 0.55s ease;
}

.auth-submit:hover {
  color: #ffffff;
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow:
    0 20px 42px rgba(232, 137, 127, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.auth-submit:hover::before {
  transform: translateX(120%);
}

.auth-submit:active {
  transform: translateY(0);
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  margin-bottom: 1.2rem;
}

.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--hcih-primary-dark);
}

.remember-me label {
  color: var(--hcih-ink);
  font-weight: 800;
  font-size: 0.9rem;
  margin: 0;
  cursor: pointer;
}

/* ============================================================
   Helper boxes / links
   ============================================================ */

.auth-help-box,
.auth-verify-box {
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.70);
  background: rgba(255, 255, 255, 0.56);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: 0 12px 26px rgba(63, 63, 64, 0.045);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.auth-help-box:hover,
.auth-verify-box:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(232, 137, 127, 0.16);
}

.auth-help-box h6,
.auth-verify-box h6 {
  margin: 0 0 0.35rem;
  color: var(--hcih-ink-dark);
  font-weight: 900;
}

.auth-help-box h6 i,
.auth-verify-box h6 i {
  color: var(--hcih-primary-deep);
}

.auth-help-box p,
.auth-verify-box p {
  margin: 0;
  color: var(--hcih-muted);
  font-size: 0.87rem;
  line-height: 1.55;
}

.auth-verify-box {
  border-color: rgba(232, 137, 127, 0.16);
}

.auth-verify-submit {
  min-height: 44px;
  border-radius: 14px;
  font-weight: 900;
  width: 100%;
  color: var(--hcih-primary-deep);
  border-color: rgba(232, 137, 127, 0.36);
  background: rgba(255, 255, 255, 0.60);
}

.auth-verify-submit:hover {
  background: var(--hcih-primary);
  border-color: var(--hcih-primary);
  color: #ffffff;
}

.auth-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
  font-weight: 850;
}

.auth-links a {
  color: var(--hcih-primary-deep);
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-footer-links {
  margin-top: 1.2rem;
  text-align: center;
  font-size: 0.8rem;
  border-top: 1px solid rgba(63, 63, 64, 0.08);
  padding-top: 0.85rem;
}

.auth-footer-links a {
  color: var(--hcih-muted);
  text-decoration: none;
  margin: 0 0.6rem;
  transition: color 0.2s;
  font-weight: 800;
}

.auth-footer-links a:hover {
  color: var(--hcih-primary-deep);
  text-decoration: underline;
}

.auth-footer-links .sep {
  color: rgba(63, 63, 64, 0.18);
}

.anti-autofill-field {
  position: fixed !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================================
   Modals
   ============================================================ */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(63, 63, 64, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 248, 0.68));
  border-radius: 30px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 34px 90px rgba(63, 63, 64, 0.18);
  animation: modalSlideUp 0.28s ease;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  flex-shrink: 0;
  padding: 24px 30px;
  border-radius: 30px 30px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 250, 248, 0.74);
  color: var(--hcih-ink-dark);
  border-bottom: 1px solid rgba(63, 63, 64, 0.08);
  position: relative;
}

.modal-header.privacy-header {
  background: rgba(255, 250, 248, 0.74);
}

.modal-header h2 {
  margin: 0;
  font-family: "Quicksand", system-ui, sans-serif;
  font-size: 1.38rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: -0.04em;
  color: var(--hcih-ink-dark);
}

.modal-header h2 i {
  font-size: 1.45rem;
  color: var(--hcih-primary-deep);
  background: rgba(255, 255, 255, 0.74);
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(232, 137, 127, 0.14);
}

.modal-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.72);
  padding: 3px 13px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--hcih-primary-deep);
  border: 1px solid rgba(232, 137, 127, 0.16);
  margin-left: 4px;
}

.modal-close {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(63, 63, 64, 0.08);
  font-size: 28px;
  font-weight: 300;
  color: var(--hcih-muted);
  cursor: pointer;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 247, 244, 0.92);
  color: var(--hcih-primary-deep);
}

.modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 32px 36px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--hcih-ink);
  line-height: 1.65;
  font-size: 0.98rem;
  scrollbar-width: thin;
  scrollbar-color: var(--hcih-primary-dark) #fff7f4;
}

.modal-body::-webkit-scrollbar {
  width: 5px;
}

.modal-body::-webkit-scrollbar-track {
  background: #fff7f4;
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--hcih-primary-dark);
  border-radius: 10px;
}

.modal-body h3 {
  font-size: 1.15rem;
  font-weight: 900;
  margin: 1.8rem 0 0.6rem 0;
  color: var(--hcih-ink-dark);
}

.modal-body p,
.modal-body li {
  color: var(--hcih-ink);
}

.policy-section {
  border-bottom: 1px solid rgba(63, 63, 64, 0.09);
  padding: 0.3rem 0;
}

.policy-section:last-of-type {
  border-bottom: none;
}

.policy-section summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--hcih-ink-dark);
  padding: 9px 4px;
  user-select: none;
  border-radius: 10px;
  transition: background 0.15s;
}

.policy-section summary:hover {
  background: rgba(255, 250, 248, 0.82);
}

.policy-section summary::-webkit-details-marker {
  display: none;
}

.policy-section summary i {
  transition: transform 0.25s;
  font-size: 1rem;
  color: var(--hcih-primary-deep);
  flex-shrink: 0;
}

.policy-section[open] summary i {
  transform: rotate(90deg);
}

.policy-section .content {
  padding: 0.2rem 0 0.2rem 2rem;
  color: var(--hcih-ink);
  font-size: 0.94rem;
  line-height: 1.6;
}

.auth-brief {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0 0.8rem;
}

.auth-brief .brief-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.64);
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(63, 63, 64, 0.08);
  border-left: 4px solid var(--hcih-primary);
}

.auth-brief .brief-item i {
  color: var(--hcih-primary-deep);
  font-size: 1.3rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.warning-box {
  background: rgba(255, 250, 244, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.20);
  border-left: 5px solid #f5a623;
  padding: 16px 20px;
  border-radius: 18px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.warning-box i {
  font-size: 1.75rem;
  color: #f5a623;
  flex-shrink: 0;
}

.info-box {
  background: rgba(255, 250, 248, 0.80);
  border: 1px solid rgba(232, 137, 127, 0.14);
  border-left: 5px solid var(--hcih-primary);
  padding: 16px 20px;
  border-radius: 18px;
  margin: 1rem 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-box i {
  font-size: 1.55rem;
  color: var(--hcih-primary-deep);
  flex-shrink: 0;
}

.modal-footer {
  flex-shrink: 0;
  padding: 18px 32px 26px;
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(63, 63, 64, 0.08);
  border-radius: 0 0 30px 30px;
  display: flex;
  justify-content: flex-end;
}

.btn-modal {
  padding: 12px 32px;
  font-size: 0.95rem;
  font-weight: 900;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-brand);
}

.btn-modal:hover {
  transform: translateY(-1px);
}

.btn-acknowledge,
.btn-understand {
  background: var(--hcih-primary);
  color: #ffffff;
}

.btn-acknowledge:hover,
.btn-understand:hover {
  background: var(--hcih-primary-dark);
  color: #ffffff;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 991px) {
  body.auth-body {
    background:
      radial-gradient(circle at 18% 12%, rgba(255, 181, 168, 0.12), transparent 28%),
      radial-gradient(circle at 85% 70%, rgba(253, 214, 207, 0.12), transparent 32%),
      linear-gradient(135deg, #ffffff 0%, #fffaf8 100%);
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-shell::before {
    width: 420px;
    height: 420px;
    top: 2%;
    left: 42%;
    opacity: 0.28;
  }

  .auth-visual {
    min-height: auto;
    padding: 1.5rem;
    gap: 1.6rem;
    border-right: 0;
    border-bottom: 1px solid rgba(63, 63, 64, 0.06);
  }

  .auth-visual::before,
  .auth-visual::after {
    display: none;
  }

  .auth-copy {
    padding: 1rem 0 0.4rem;
  }

  .auth-highlights {
    grid-template-columns: 1fr;
  }

  .auth-main {
    min-height: auto;
    padding: 1.25rem;
    overflow: visible;
  }

  .auth-main::before {
    width: min(110vw, 620px);
    height: min(110vw, 620px);
    left: 50%;
    top: 48%;
    opacity: 0.82;
  }

  .auth-main::after {
    width: 280px;
    height: 280px;
    left: 72%;
    top: 70%;
    opacity: 0.48;
  }

  .auth-card {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.30)),
      radial-gradient(circle at top right, rgba(255, 181, 168, 0.05), transparent 42%);
  }

  .auth-visual-footer {
    display: none;
  }
}

@media (max-width: 575px) {
  body.auth-body {
    overflow-x: hidden;
  }

  .auth-card {
    border-radius: 26px;
    padding: 1.15rem;
    backdrop-filter: blur(32px) saturate(165%);
    -webkit-backdrop-filter: blur(32px) saturate(165%);
  }

  .auth-card::after {
    border-radius: 25px;
  }

  .auth-card h2 {
    font-size: 1.75rem;
  }

  .auth-brand img {
    width: 54px;
    height: 54px;
  }

  .auth-brand span {
    font-size: 1.06rem;
  }

  .auth-main::before {
    width: 460px;
    height: 460px;
    left: 50%;
    top: 48%;
    opacity: 0.70;
  }

  .auth-main::after {
    width: 220px;
    height: 220px;
    left: 74%;
    top: 72%;
    opacity: 0.40;
  }

  .auth-control,
  .auth-submit {
    min-height: 50px;
  }

  .auth-links {
    gap: 0.55rem;
  }

  .auth-footer-links a {
    margin: 0 0.35rem;
  }

  .modal-container {
    max-width: 96%;
    border-radius: 24px;
  }

  .modal-header {
    padding: 18px 20px;
    border-radius: 24px 24px 0 0;
  }

  .modal-header h2 {
    font-size: 1.15rem;
    gap: 10px;
    flex-wrap: wrap;
  }

  .modal-body {
    padding: 20px 18px;
    font-size: 0.92rem;
  }

  .modal-footer {
    padding: 14px 18px 20px;
    border-radius: 0 0 24px 24px;
  }

  .warning-box,
  .info-box {
    padding: 12px 14px;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================
   HCiH Login Interactive Motion
   Mouse-follow circle + subtle glass card tilt
   ============================================================ */

.auth-main {
  --hcih-depth-x: 0px;
  --hcih-depth-y: 0px;
  --hcih-card-rotate-x: 0deg;
  --hcih-card-rotate-y: 0deg;
}

/* Make the big circle react to mouse movement */
.auth-main::before {
  animation: none !important;
  transform:
    translate(
      calc(-50% + var(--hcih-depth-x)),
      calc(-53% + var(--hcih-depth-y))
    )
    scale(1) !important;
  transition: transform 0.18s ease-out !important;
}

/* Smaller circle moves opposite direction */
.auth-main::after {
  animation: none !important;
  transform:
    translate(
      calc(-50% - var(--hcih-depth-x)),
      calc(-50% - var(--hcih-depth-y))
    )
    scale(1) !important;
  transition: transform 0.22s ease-out !important;
}

/* Card gets a very subtle premium tilt */
.auth-card {
  transform:
    perspective(1100px)
    rotateX(var(--hcih-card-rotate-x))
    rotateY(var(--hcih-card-rotate-y))
    translateY(0);
  transform-style: preserve-3d;
}

.auth-card:hover,
.auth-card:focus-within {
  transform:
    perspective(1100px)
    rotateX(var(--hcih-card-rotate-x))
    rotateY(var(--hcih-card-rotate-y))
    translateY(-5px);
}

/* Tiny depth on inner elements */
.auth-badge,
.auth-form,
.auth-help-box,
.auth-verify-box,
.auth-links,
.auth-footer-links {
  transform: translateZ(18px);
}

/* Soft shine that moves with the card */
.auth-card .hcih-card-shine {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(
      circle at var(--shine-x, 50%) var(--shine-y, 50%),
      rgba(255, 255, 255, 0.36),
      transparent 34%
    );
  transition: opacity 0.2s ease;
}

.auth-card:hover .hcih-card-shine,
.auth-card:focus-within .hcih-card-shine {
  opacity: 1;
}

@media (max-width: 991px), (prefers-reduced-motion: reduce) {
  .auth-main {
    --hcih-depth-x: 0px !important;
    --hcih-depth-y: 0px !important;
    --hcih-card-rotate-x: 0deg !important;
    --hcih-card-rotate-y: 0deg !important;
  }

  .auth-main::before,
  .auth-main::after,
  .auth-card,
  .auth-card:hover,
  .auth-card:focus-within {
    transform: none !important;
  }

  .auth-card .hcih-card-shine {
    display: none !important;
  }
}

/* ============================================================
   HCiH Login Final Fix
   Header wrap + no double scrollbar + working interaction layer
   ============================================================ */

/* Desktop: lock page to one clean screen */
@media (min-width: 992px) {
  html,
  body {
    height: 100%;
    overflow: hidden !important;
  }

  body.auth-body {
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
  }

  .auth-shell {
    height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .auth-visual,
  .auth-main {
    height: 100dvh !important;
    min-height: 0 !important;
  }

  .auth-main {
    overflow: hidden !important;
  }

  .auth-visual {
    overflow: hidden !important;
  }
}

/* Fix headline becoming 3 lines */
.auth-copy h1 {
  font-size: clamp(2.45rem, 3.55vw, 3.65rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.055em !important;
  max-width: 780px !important;
  text-wrap: balance !important;
}

/* Keep left side visually balanced */
.auth-copy {
  max-width: 780px !important;
}

.auth-copy p {
  max-width: 720px !important;
}

/* Keep highlight cards from making the left side too tall */
.auth-highlights {
  gap: 0.7rem !important;
}

.auth-highlight {
  min-height: 118px !important;
}

/* Big circle stays behind card but no longer creates page scroll */
.auth-main::before {
  width: min(72vw, 760px) !important;
  height: min(72vw, 760px) !important;
  left: 44% !important;
  top: 50% !important;
  opacity: 0.95 !important;
}

/* Secondary circle */
.auth-main::after {
  width: 360px !important;
  height: 360px !important;
  left: 72% !important;
  top: 68% !important;
  opacity: 0.56 !important;
}

/* Interactive movement variables */
.auth-main {
  --hcih-depth-x: 0px;
  --hcih-depth-y: 0px;
  --hcih-card-rotate-x: 0deg;
  --hcih-card-rotate-y: 0deg;
}

/* Mouse-follow circle */
.auth-main::before {
  animation: none !important;
  transform:
    translate(
      calc(-50% + var(--hcih-depth-x)),
      calc(-53% + var(--hcih-depth-y))
    )
    scale(1) !important;
  transition: transform 0.18s ease-out !important;
}

.auth-main::after {
  animation: none !important;
  transform:
    translate(
      calc(-50% - var(--hcih-depth-x)),
      calc(-50% - var(--hcih-depth-y))
    )
    scale(1) !important;
  transition: transform 0.22s ease-out !important;
}

/* Premium subtle tilt */
.auth-card {
  transform:
    perspective(1100px)
    rotateX(var(--hcih-card-rotate-x))
    rotateY(var(--hcih-card-rotate-y))
    translateY(0) !important;
  transform-style: preserve-3d !important;
}

.auth-card:hover,
.auth-card:focus-within {
  transform:
    perspective(1100px)
    rotateX(var(--hcih-card-rotate-x))
    rotateY(var(--hcih-card-rotate-y))
    translateY(-5px) !important;
}

/* Moving shine */
.auth-card .hcih-card-shine {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(
      circle at var(--shine-x, 50%) var(--shine-y, 50%),
      rgba(255, 255, 255, 0.38),
      transparent 34%
    );
  transition: opacity 0.2s ease;
}

.auth-card:hover .hcih-card-shine,
.auth-card:focus-within .hcih-card-shine {
  opacity: 1;
}

/* Keep text/content above the shine */
.auth-card > *:not(.hcih-card-shine) {
  position: relative;
  z-index: 1;
}

/* Mobile can scroll normally */
@media (max-width: 991px) {
  html,
  body,
  body.auth-body {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .auth-shell,
  .auth-visual,
  .auth-main {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  .auth-copy h1 {
    font-size: clamp(2rem, 9vw, 3rem) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-main {
    --hcih-depth-x: 0px !important;
    --hcih-depth-y: 0px !important;
    --hcih-card-rotate-x: 0deg !important;
    --hcih-card-rotate-y: 0deg !important;
  }

  .auth-main::before,
  .auth-main::after,
  .auth-card,
  .auth-card:hover,
  .auth-card:focus-within {
    transform: none !important;
  }

  .auth-card .hcih-card-shine {
    display: none !important;
  }
}
.forgot-password-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.45rem;
}

.forgot-password-link {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f766e;
  text-decoration: none;
}

.forgot-password-link:hover {
  color: #0d9488;
  text-decoration: underline;
}
/* ============================================================
   Forgot Password Page Scroll Fix + Password Requirement UI
   Add body class in forgot_password.php:
   <body class="auth-body forgot-password-page">
   ============================================================ */

body.auth-body.forgot-password-page {
  height: auto !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.auth-body.forgot-password-page .auth-shell {
  height: auto !important;
  min-height: 100vh !important;
  overflow: visible !important;
}

body.auth-body.forgot-password-page .auth-visual,
body.auth-body.forgot-password-page .auth-main {
  height: auto !important;
  min-height: 100vh !important;
  overflow: visible !important;
}

body.auth-body.forgot-password-page .auth-main {
  align-items: center;
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

body.auth-body.forgot-password-page .auth-card {
  max-height: none !important;
  overflow: hidden !important;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Forgot password progress bar */
.forgot-progress {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 1.2rem;
}

.forgot-step {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: #fdd6cf;
  overflow: hidden;
}

.forgot-step.active {
  background: linear-gradient(135deg, var(--hcih-primary), var(--hcih-primary-dark));
}

/* Forgot password helper note */
.forgot-note {
  border: 1px solid rgba(232, 137, 127, 0.18);
  background: rgba(255, 250, 248, 0.88);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  font-weight: 800;
  color: var(--hcih-primary-deep);
  margin-bottom: 1rem;
}

/* OTP input */
.otp-input {
  text-align: center;
  font-size: 1.35rem;
  letter-spacing: 0.45rem;
  font-weight: 900;
}

/* Forgot password action links */
.forgot-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  color: var(--hcih-primary-deep);
  font-weight: 900;
  text-decoration: none;
}

.forgot-secondary-link:hover {
  color: var(--hcih-primary-dark);
  text-decoration: underline;
}

.forgot-inline-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.resend-form {
  margin: 0;
}

.resend-button {
  border: 0;
  background: transparent;
  color: var(--hcih-primary-deep);
  font-weight: 900;
  padding: 0;
}

.resend-button:hover {
  color: var(--hcih-primary-dark);
  text-decoration: underline;
}

/* Password requirement checklist */
.password-rules {
  display: grid;
  gap: 0.45rem;
  margin-top: -0.25rem;
}

.password-rule {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 850;
  color: #b91c1c;
  background: rgba(255, 243, 242, 0.86);
  border: 1px solid rgba(180, 35, 24, 0.12);
  border-radius: 14px;
  padding: 0.55rem 0.7rem;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.password-rule i {
  font-size: 1rem;
  flex-shrink: 0;
}

.password-rule.valid {
  color: #15803d;
  background: rgba(240, 253, 244, 0.88);
  border-color: rgba(21, 128, 61, 0.16);
}

.password-rule.invalid {
  color: #b91c1c;
  background: rgba(255, 243, 242, 0.86);
  border-color: rgba(180, 35, 24, 0.12);
}

#resetPasswordBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

/* Forgot page responsive scroll */
@media (min-width: 992px) {
  body.auth-body.forgot-password-page {
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
  }

  body.auth-body.forgot-password-page .auth-shell {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }

  body.auth-body.forgot-password-page .auth-visual,
  body.auth-body.forgot-password-page .auth-main {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }

  body.auth-body.forgot-password-page .auth-main {
    place-items: center;
  }
}

@media (max-height: 820px) and (min-width: 992px) {
  body.auth-body.forgot-password-page .auth-main {
    place-items: start center;
  }

  body.auth-body.forgot-password-page .auth-card {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 991px) {
  body.auth-body.forgot-password-page .auth-main {
    min-height: auto !important;
    padding: 1.25rem !important;
  }

  body.auth-body.forgot-password-page .auth-visual {
    min-height: auto !important;
  }

  body.auth-body.forgot-password-page .auth-card {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .otp-input {
    font-size: 1.1rem;
    letter-spacing: 0.25rem;
  }

  .password-rule {
    font-size: 0.82rem;
    padding: 0.5rem 0.65rem;
  }

  .forgot-inline-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}