 *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --bg: #f0f4ff;
    --card: #ffffff;
    --border: #e2e8f8;
    --accent: #4361ee;
    --accent-light: #eef0fd;
    --purple: #7c3aed;
    --red: #f03e5e;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --shadow: 0 4px 6px rgba(15,23,42,0.04), 0 20px 48px rgba(67,97,238,0.10);
  }

    body {
      display: flex;
      align-items: center;
      justify-content: center;
    }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ── form.woocommerce-ResetPassword = card ── */
  form.woocommerce-ResetPassword {
    width: 100%;
    max-width: 520px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: fadeUp 0.55s cubic-bezier(0.22,1,0.36,1) both;
    display: flex;
    flex-direction: column;
  }

  /* Page title injected above description */
  form.woocommerce-ResetPassword::after {
    content: 'Reset Password';
    display: block;
    order: -2;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    padding: 28px 32px 0;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* ── First <p> = description text ── */
  form.woocommerce-ResetPassword > p:first-of-type {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 14px 32px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }

  /* ── Username field row ── */
  .woocommerce-form-row.form-row-first {
    padding: 24px 32px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  /* ── Label ── */
  .woocommerce-form-row label {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 3px;
  }
  .required { color: var(--red); font-size: 0.85rem; }
  .screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
  }

  /* ── Input ── */
  .woocommerce-Input--text, .input-text {
    width: 100%;
    padding: 11px 14px !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 12px !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary) !important;
    background: #f8faff;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    display: block;
  }
  .woocommerce-Input--text:focus,
  .input-text:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(67,97,238,0.12);
  }
  input::placeholder { color: var(--text-muted); font-weight: 400; }

  /* ── Clear div ── */
  .clear { display: block; height: 0; }

  /* ── Button row ── */
  .woocommerce-form-row.form-row:last-of-type {
    padding: 20px 32px 32px;
    display: flex;
    align-items: center;
  }

  /* ── Reset password button ── */
  .woocommerce-Button.button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4361ee, #7c3aed);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 4px 16px rgba(67,97,238,0.32);
    position: relative;
    overflow: hidden;
  }
  .woocommerce-Button.button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 60%);
    pointer-events: none;
  }
  .woocommerce-Button.button:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(67,97,238,0.42);
  }
  .woocommerce-Button.button:active { transform: translateY(0); }

  /* ── Hidden inputs ── */
  input[type="hidden"] { display: none; }