/* ═══════════════════════════════════════════════════════
   LSE Capital – Forgot / Reset Password Styles
   Brand: Deep navy / gold / ivory — refined finance
═══════════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────────── */
:root {
  --navy:       #0b1f3a;
  --navy-mid:   #122847;
  --navy-light: #1c3a5e;
  --gold:       #c8a84b;
  --gold-light: #e2c97e;
  --ivory:      #f5f0e8;
  --white:      #ffffff;
  --text-main:  #1a1a2e;
  --text-muted: #6b7a90;
  --border:     #d4c9b0;
  --error:      #c0392b;
  --error-bg:   #fdf0ef;
  --success:    #1a7a4a;
  --success-bg: #edf7f2;
  --radius:     10px;
  --shadow:     0 16px 48px rgba(11,31,58,.15), 0 2px 8px rgba(11,31,58,.08);
}

#nprogress .bar {
      background: #0b1f3a !important;
    }
    
    #nprogress .peg {
      box-shadow: 0 0 10px #0b1f3a, 0 0 5px #0b1f3a;
    }
    
    #nprogress .spinner-icon {
      border-top-color: #0b1f3a;
      border-left-color: #0b1f3a;
    }
    

/* ── RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── BASE ──────────────────────────────────────────── */
html { font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(200,168,75,.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(28,58,94,.6) 0%, transparent 60%);
  min-height: 100vh;
  color: var(--text-main);
}

/* ── LAYOUT ────────────────────────────────────────── */
.page-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── HEADER ────────────────────────────────────────── */
.site-header {
  padding: 20px 32px;
  border-bottom: 1px solid rgba(200,168,75,.2);
  background: rgba(255,255,255,1);
  backdrop-filter: blur(8px);
}
.logo-link { display: inline-block; }
.logo { height: 60px;  width: auto; display: block; }

/* ── CARD AREA ─────────────────────────────────────── */
.card-wrap {
    background: var(--navy);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 32px;
}

.card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  animation: cardIn .45s cubic-bezier(.22,1,.36,1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── CARD HEADER ───────────────────────────────────── */
.card-header {
  background: var(--navy);
  background-image: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 36px 32px 28px;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}

.icon-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--gold);
  background: rgba(200,168,75,.08);
}
.icon-ring svg { width: 28px; height: 28px; }
.icon-ring.icon-error  { border-color: #e57373; color: #e57373; }
.icon-ring.icon-success { border-color: #66bb6a; color: #66bb6a; }

.card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: .01em;
  line-height: 1.2;
}
.card-sub {
  margin-top: 10px;
  font-size: .875rem;
  color: rgba(245,240,232,.7);
  line-height: 1.6;
}

/* ── ALERTS ────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 20px;
  margin: 20px 24px 0;
  border-radius: var(--radius);
  font-size: .875rem;
  line-height: 1.5;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.alert-error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(192,57,43,.2);
}
.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(26,122,74,.2);
}

/* ── FORM ──────────────────────────────────────────── */
.reset-form {
  padding: 24px 28px 8px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 7px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 13px;
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  pointer-events: none;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 11px 42px 11px 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  color: var(--text-main);
  background: #fafaf8;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(18,40,71,.1);
  background: var(--white);
}
input::placeholder { color: #aab0be; }

.toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 2px;
  display: flex;
  transition: color .15s;
}
.toggle-pw svg { width: 17px; height: 17px; }
.toggle-pw:hover,
.toggle-pw.active { color: var(--navy); }

/* Strength meter */
.strength-bar {
  height: 4px;
  background: #e8e4dc;
  border-radius: 99px;
  margin-top: 8px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  transition: width .3s, background .3s;
}
.strength-fill.weak   { background: #e74c3c; }
.strength-fill.fair   { background: #e67e22; }
.strength-fill.good   { background: #f1c40f; }
.strength-fill.strong { background: #27ae60; }

.strength-label {
  font-size: .75rem;
  margin-top: 4px;
  font-weight: 500;
}
.strength-label.weak   { color: #e74c3c; }
.strength-label.fair   { color: #e67e22; }
.strength-label.good   { color: #d4a800; }
.strength-label.strong { color: #27ae60; }

.match-msg {
  font-size: .78rem;
  margin-top: 5px;
  font-weight: 500;
}
.match-msg.ok  { color: #27ae60; }
.match-msg.err { color: #e74c3c; }

/* ── SUBMIT BTN ────────────────────────────────────── */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  background: var(--navy);
  color: var(--gold-light);
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(11,31,58,.25);
  margin-top: 4px;
}
.btn-submit svg { width: 17px; height: 17px; }
.btn-submit:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(11,31,58,.3);
}
.btn-submit:active { transform: translateY(0); }

/* ── BACK LINK ─────────────────────────────────────── */
.back-row {
  text-align: center;
  padding: 16px 28px 24px;
}
.link-muted {
  font-size: .875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
}
.link-muted:hover { color: var(--navy); }

.btn-back {
  display: inline-block;
  padding: 11px 28px;
  background: var(--navy);
  color: var(--gold-light);
  text-decoration: none;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  transition: background .2s, transform .15s;
  box-shadow: 0 3px 12px rgba(11,31,58,.2);
}
.btn-back:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

/* ── HELP TEXT ─────────────────────────────────────── */
.help-text {
  margin-top: 24px;
  font-size: .8rem;
  color: rgba(245,240,232,.55);
  text-align: center;
  line-height: 1.7;
}
.help-text a {
  color: var(--gold);
  text-decoration: none;
}
.help-text a:hover { text-decoration: underline; }

/* ── FOOTER ────────────────────────────────────────── */
.site-footer {
    background:var(--navy);
  text-align: center;
  padding: 20px;
  color: rgba(245,240,232,.35);
  font-size: .78rem;
  border-top: 1px solid rgba(200,168,75,.1);
  margin-top: auto;
}

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 480px) {
  .site-header  { padding: 16px 20px; }
  .card-header  { padding: 28px 20px 22px; }
  .card-title   { font-size: 1.55rem; }
  .reset-form   { padding: 20px 18px 6px; }
  .back-row     { padding: 14px 18px 20px; }
  .alert        { margin: 16px 16px 0; }
}
