/* reset.css — TrueCare password-reset multi-step page */
:root {
  --bg: #F0F4F8;
  --card: #fff;
  --text: #0F172A;
  --sub: #475569;
  --muted: #94A3B8;
  --border: #E2E8F0;
  --blue: #2563EB;
  --blue2: #1D4ED8;
  --green: #16A34A;
  --red: #DC2626;
  --radius: 14px;
  --shadow-card: 0 10px 30px rgba(15,23,42,.1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body.auth {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }

/* ── Centered wrapper ── */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

/* ── Two-panel card ── */
.auth-card {
  width: min(900px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── Decorative left panel ── */
.auth-panel {
  background: linear-gradient(145deg, #1E3A5F 0%, #1D4ED8 60%, #2563EB 100%);
  padding: 44px 40px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.auth-panel::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.auth-panel::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 320px; height: 320px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.auth-panel__inner { position: relative; z-index: 1; width: 100%; }

.brand--panel {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  margin-bottom: 32px;
}
.brand--panel img {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  object-fit: contain;
  background: rgba(255,255,255,.1);
}
.auth-panel__inner h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  line-height: 1.2;
  margin: 0 0 14px;
}
.auth-panel__inner > p {
  color: rgba(255,255,255,.75);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  margin: 0 0 28px;
}
.panel__features {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.panel__features li {
  color: rgba(255,255,255,.9);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel__features li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.2);
}

/* ── Form side ── */
.auth-left {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Mobile-only brand */
.brand--form {
  display: none;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 20px;
}
.brand--form img {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: contain;
}

/* ── Step indicator ── */
.step-indicator {
  display: flex;
  align-items: flex-start;
  margin-bottom: 28px;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  transition: background .25s, border-color .25s, color .25s;
}
.step-dot.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.step-dot.done {
  background: #DCFCE7;
  border-color: #86EFAC;
  color: var(--green);
}
.step-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-top: 15px;
  transition: background .25s;
  min-width: 20px;
}
.step-line.done { background: var(--blue); }

/* ── Headings ── */
.title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.sub {
  margin: 0 0 22px;
  color: var(--sub);
  font-size: 15px;
  font-weight: 500;
}

/* ── Form ── */
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--sub);
  font-weight: 700;
}
.field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  outline: none;
  background: #FAFBFC;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,.1);
  background: #fff;
}

/* ── Password eye toggle ── */
.field--pw .pw-wrap { position: relative; }
.field--pw .pw-wrap input { padding-right: 44px; }
.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 5px;
  line-height: 0;
  border-radius: 8px;
  transition: color .2s, background .2s, transform .2s;
}
.pw-toggle:hover {
  color: var(--blue);
  background: rgba(37,99,235,.08);
  transform: translateY(-50%) scale(1.15);
}
.pw-toggle:active { transform: translateY(-50%) scale(0.92); }
.eye-svg { display: block; overflow: visible; }
.eye-lid, .eye-lash, .eye-pupil {
  transition: stroke-dashoffset .35s cubic-bezier(.4,0,.2,1),
              opacity .25s ease,
              r .3s cubic-bezier(.34,1.56,.64,1);
}
.eye-lash {
  stroke-dasharray: 30;
  stroke-dashoffset: 0;
}
.pw-toggle.is-visible { color: var(--blue); }
.pw-toggle.is-visible .eye-lash { stroke-dashoffset: 30; }
.pw-toggle.is-visible .eye-pupil { r: 4; }

/* ── Strength bar ── */
.strength-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.strength-bar {
  display: flex;
  gap: 4px;
  flex: 1;
}
.strength-seg {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  transition: background .2s;
}
.strength-label {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  min-width: 44px;
  color: var(--muted);
}
.strength-wrap[data-level="1"] .strength-seg:nth-child(1) { background: #EF4444; }
.strength-wrap[data-level="1"] .strength-label { color: #EF4444; }
.strength-wrap[data-level="2"] .strength-seg:nth-child(-n+2) { background: #F97316; }
.strength-wrap[data-level="2"] .strength-label { color: #F97316; }
.strength-wrap[data-level="3"] .strength-seg:nth-child(-n+3) { background: #EAB308; }
.strength-wrap[data-level="3"] .strength-label { color: #EAB308; }
.strength-wrap[data-level="4"] .strength-seg { background: #16A34A; }
.strength-wrap[data-level="4"] .strength-label { color: #16A34A; }

/* ── Error message ── */
.error-msg {
  min-height: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin: 0;
}

/* ── Button ── */
.btn {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font-family: var(--font);
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  transition: transform .08s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--blue);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
}
.btn-primary:hover {
  background: var(--blue2);
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
}
.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* ── Resend / back links ── */
.resend-row {
  margin-top: 14px;
  font-size: 14px;
  color: var(--sub);
  font-weight: 500;
}
.link-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  padding: 0;
}
.link-btn:hover { text-decoration: underline; }
.back-link {
  display: inline-block;
  margin-top: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  padding: 0;
}
.back-link:hover { color: var(--sub); }
.back {
  display: inline-block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.back:hover { color: var(--sub); }

/* ── OTP input ── */
#otpCode {
  letter-spacing: 0.3em;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
}

/* ── Success card ── */
.success-card {
  text-align: center;
  padding: 28px 20px;
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  border-radius: 16px;
  margin-bottom: 20px;
}
.success-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #16A34A;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.success-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #15803D;
}
.success-msg {
  font-size: 14px;
  color: #166534;
  margin: 0;
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 680px) {
  .auth-card {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }
  .auth-panel { display: none; }
  .brand--form { display: flex; }
  .auth-left { padding: 32px 28px; }
}
