/* =============================================
   PASSWORD RESET — password_reset.css
   Mobile-first, orthodox editorial aesthetic
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Lora:ital,wght@0,400;0,500;1,400&family=Montserrat:wght@300;400;600&display=swap');

:root {
  --clr-bg:        #0f0e0b;
  --clr-surface:   #1a1814;
  --clr-surface2:  #231f1a;
  --clr-gold:      #c9a84c;
  --clr-gold-soft: #e8c97a;
  --clr-gold-dim:  rgba(201, 168, 76, 0.12);
  --clr-text:      #e8e0d0;
  --clr-muted:     #8c8275;
  --clr-border:    rgba(201, 168, 76, 0.22);
  --clr-error:     #c0503a;
  --clr-success:   #6a9e72;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-ui:      'Montserrat', sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ── Full-height section ── */
.hero-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  isolation: isolate;
}

/* Radial glow background */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(201,168,76,0.07) 0%, transparent 70%),
    var(--clr-bg);
}

/* Grain overlay */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

/* ── Card ── */
.password-reset-wrapper {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  animation: fadeUp 0.7s var(--ease-out) both;
  max-width: 460px;
  width: 100%;
  text-align: center;
}

@media (min-width: 480px) {
  .password-reset-wrapper { padding: 3rem 2.5rem; }
}

/* Ornamental top rule inside card */
.password-reset-wrapper::before {
  content: '✦';
  display: block;
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--clr-gold);
  margin-bottom: 1.25rem;
}

/* ── Title ── */
.password-reset-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 900;
  color: var(--clr-text);
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.1;
}

/* ── Description text ── */
.password-reset-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--clr-muted);
  margin-bottom: 2rem;
}

/* ── Form layout ── */
.password-reset-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Inputs ── */
.password-reset-wrapper input[type="email"],
.password-reset-wrapper input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  -webkit-appearance: none;
}

.password-reset-wrapper input:focus {
  border-color: var(--clr-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.password-reset-wrapper input::placeholder {
  color: var(--clr-muted);
  opacity: 0.6;
}

/* ── Submit button ── */
.hero-btn {
  width: 100%;
  padding: 0.85rem 2rem;
  background: var(--clr-gold);
  color: var(--clr-bg);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
  margin-top: 0.5rem;
}

.hero-btn:hover {
  background: var(--clr-gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.25);
}

.hero-btn:active { transform: translateY(0); }

.hero-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Validation states ── */
.password-reset-wrapper input:invalid:not(:placeholder-shown) {
  border-color: var(--clr-error);
}

.password-reset-wrapper input:valid:not(:placeholder-shown) {
  border-color: var(--clr-success);
}

/* ── Animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
