/* ==========================================================================
   AESTIA 3D — FORGOT PASSWORD PAGE
   Centered card design, dark ambient background with rose accents
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-size: 16px; height: 100%; }

:root {
  --rose-glow:   rgba(212, 96, 126, 0.3);
  --muted:       #8a5060;
  --dark-bg:     #0e0509;
  --transition:  all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
  font-family: 'Jost', sans-serif;
  background: var(--dark-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (pointer: coarse) {  }

/* ── GRAIN ──────────────────────────────────────── */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 900;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: .5;
}

/* ── PAGE WRAP ──────────────────────────────────── */
.page-wrap {
  position: relative; width: 100%; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}

/* ── BG ORBS ────────────────────────────────────── */
.bg-orb {
  position: fixed; border-radius: 50%; pointer-events: none;
  filter: blur(100px); z-index: 0;
}
.bg-orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(212,96,126,0.22) 0%, transparent 70%); top: -150px; left: -150px; animation: orbDrift1 18s ease-in-out infinite alternate; }
.bg-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(168,58,88,0.15) 0%, transparent 70%); bottom: -120px; right: -100px; animation: orbDrift2 14s ease-in-out infinite alternate; }
.bg-orb-3 { width: 250px; height: 250px; background: radial-gradient(circle, rgba(212,96,126,0.1) 0%, transparent 70%); top: 50%; left: 60%; animation: orbDrift3 20s ease-in-out infinite alternate; }
@keyframes orbDrift1 { to { transform: translate(60px, 80px) scale(1.1); } }
@keyframes orbDrift2 { to { transform: translate(-40px, -60px) scale(1.15); } }
@keyframes orbDrift3 { to { transform: translate(-80px, 50px) scale(0.9); } }

/* ── FLOATING ICONS ─────────────────────────────── */
.float-icons { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.fi {
  position: absolute; color: rgba(212,96,126,0.13);
  font-size: 1.6rem; animation: infinite alternate;
}
.fi-1 { top: 12%; left: 5%;  animation: fi1 9s ease-in-out infinite alternate; }
.fi-2 { top: 25%; right: 6%; animation: fi2 7s ease-in-out infinite alternate; font-size: 1.3rem; }
.fi-3 { bottom: 20%; left: 8%;  animation: fi3 11s ease-in-out infinite alternate; font-size: 2rem; color: rgba(212,96,126,.1); }
.fi-4 { bottom: 30%; right: 5%; animation: fi4 8s ease-in-out infinite alternate; font-size: 1.2rem; }
.fi-5 { top: 60%; left: 15%; animation: fi5 13s ease-in-out infinite alternate; }
@keyframes fi1 { from { transform: translateY(0); }      to { transform: translateY(-18px) rotate(12deg); } }
@keyframes fi2 { from { transform: translateY(0); }      to { transform: translateY(14px) rotate(-10deg); } }
@keyframes fi3 { from { transform: translate(0,0); }     to { transform: translate(10px,-20px) rotate(15deg); } }
@keyframes fi4 { from { transform: translateY(0); }      to { transform: translateY(-12px) rotate(-360deg); } }
@keyframes fi5 { from { transform: scale(1); }           to { transform: scale(1.2) translateY(10px); } }

/* ── RESET CARD ─────────────────────────────────── */
.reset-card {
  position: relative; z-index: 10;
  background: rgba(255,250,252,0.97);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 52px 48px;
  width: 100%; max-width: 480px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.25), 0 0 0 1px rgba(212,96,126,0.06);
  display: flex; flex-direction: column; align-items: center;
  animation: cardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Brand logo */
.brand-logo {
  font-family: 'Cormorant', serif; font-size: 1.8rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  margin-bottom: 28px; line-height: 1;
}
.brand-logo .aes  { color: var(--ink); }
.brand-logo .tia  { color: var(--rose); }
.brand-logo .three { color: var(--blush); font-style: italic; }

/* Icon badge */
.icon-badge {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(212,96,126,0.12), rgba(168,58,88,0.18));
  border: 1.5px solid rgba(212,96,126,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--rose); margin-bottom: 24px;
  transition: var(--transition);
  box-shadow: 0 0 0 8px rgba(212,96,126,0.06);
}

/* Form header */
.form-eyebrow {
  font-size: .65rem; letter-spacing: .35em; text-transform: uppercase;
  font-weight: 600; color: var(--rose); margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.form-eyebrow::before, .form-eyebrow::after { content: ''; width: 16px; height: 1px; background: var(--rose); }

.form-title { font-family: 'Cormorant', serif; font-size: 2.4rem; font-weight: 400; color: var(--ink); text-align: center; margin-bottom: 10px; }
.form-subtitle { font-size: .9rem; color: var(--muted); text-align: center; line-height: 1.7; margin-bottom: 32px; }

/* Form */
#resetForm { width: 100%; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--warm); margin-bottom: 7px; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 16px; color: var(--blush); font-size: .95rem; pointer-events: none; transition: color 0.3s; }
.input-wrap:focus-within .input-icon { color: var(--rose); }
.input-wrap input {
  width: 100%; padding: 14px 14px 14px 44px;
  background: rgba(255,255,255,0.9);
  border: 1.5px solid var(--border-soft); border-radius: 12px;
  font-family: 'Jost', sans-serif; font-size: .95rem; color: var(--ink);
  outline: none; transition: var(--transition);
}
.input-wrap input::placeholder { color: rgba(90,48,64,0.35); }
.input-wrap input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(212,96,126,0.12); background: white; }

/* Submit button */
.submit-btn {
  width: 100%; padding: 16px 24px;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: white; border: none; border-radius: 12px;
  font-family: 'Jost', sans-serif; font-size: 1rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 28px rgba(212,96,126,0.32);
  transition: var(--transition); margin-bottom: 20px;
}
.submit-btn:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(212,96,126,0.45); }
.submit-btn:disabled { background: var(--muted); box-shadow: none; cursor: not-allowed; }

.hidden { display: none !important; }

/* Back link */
.back-link { text-align: center; font-size: .88rem; }
.back-link a { color: var(--rose); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.back-link a:hover { text-decoration: underline; }

/* ── SUCCESS STATE ───────────────────────────────── */
#step-success { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }

.success-badge {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: white; margin-bottom: 24px;
  box-shadow: 0 12px 30px rgba(212,96,126,0.4);
  animation: successPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes successPop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.success-title { font-family: 'Cormorant', serif; font-size: 2.2rem; font-weight: 400; color: var(--ink); margin-bottom: 12px; }
.success-text { font-size: .92rem; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }

.success-tips {
  width: 100%; background: var(--petal);
  border: 1px solid var(--border-soft); border-radius: 12px;
  padding: 16px 20px; display: flex; flex-direction: column; gap: 8px;
}
.success-tips p { font-size: .85rem; color: var(--warm); display: flex; align-items: center; gap: 10px; }
.success-tips i { color: var(--rose); width: 16px; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 540px) {
  .reset-card { padding: 36px 24px; }
  .form-title { font-size: 2rem; }
  .icon-badge { width: 56px; height: 56px; font-size: 1.3rem; }
}