/* =====================================================================
 * Fichier : assets/css/pages/konto-passwort-vergessen.css
 * Projet  : Brennholz Shop24
 * Rôle    : Styles propres à la page « mot de passe oublié »
 *           (konto/passwort-vergessen.php) : formulaire, étapes
 *           explicatives, état « envoyé » animé (coche tracée, ondes),
 *           conseils et compte à rebours avant une nouvelle demande.
 *           Les styles communs (kt-*) sont dans components/konto.css.
 * ===================================================================== */

/* ---------------------------------------------------------------------
 * 1. Formulaire
 * ------------------------------------------------------------------- */
.pv-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
.pv-field { animation: hfk-fade-up .55s var(--hfk-ease) both; }
.pv-field input { height: 54px; }
.pv-field .kt-input-wrap > i { width: 18px; text-align: center; }
.pv-submit { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 56px; }
.pv-submit i { transition: transform .4s var(--hfk-ease); }
.pv-submit:hover i { transform: translate(5px, -5px); }
.pv-submit.is-waiting { pointer-events: none; opacity: .55; filter: grayscale(.4); }
.pv-wait { margin: -.4rem 0 0; padding: .6rem .8rem; border-left: 4px solid var(--hfk-amber); background: var(--hfk-amber-light); font-size: .86rem; color: #6B4A00; }
.pv-wait[hidden] { display: none; }

/* Étapes explicatives */
.pv-steps { counter-reset: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.pv-steps li { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; background: var(--hfk-cream); transition: background .3s, transform .35s var(--hfk-ease); }
.pv-steps li:hover { background: var(--hfk-flame-light); transform: translateX(5px); }
.pv-steps li > span { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; background: var(--hfk-charcoal); color: var(--hfk-amber); font-family: var(--hfk-font-head); font-weight: 700; font-size: .9rem; transition: background .3s, color .3s; }
.pv-steps li:hover > span { background: var(--hfk-flame); color: #fff; }
.pv-steps p { margin: 0; font-size: .9rem; color: var(--hfk-text); }
.pv-steps strong { color: var(--hfk-charcoal); }

.pv-sep { margin: 0 .4rem; }
.kt-auth-switch i { margin-right: .3rem; transition: transform .3s var(--hfk-ease); }
.kt-auth-switch a:hover i { transform: translateX(-4px); }

/* ---------------------------------------------------------------------
 * 2. État « envoyé »
 * ------------------------------------------------------------------- */
.pv-sent { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
.pv-sent-visual { position: relative; width: 96px; height: 96px; margin: .2rem auto 0; }
.pv-sent-badge { position: absolute; inset: 12px; display: grid; place-items: center; border-radius: 50%; background: var(--hfk-forest); color: #fff; box-shadow: 0 10px 26px rgba(42, 157, 143, .35); animation: hfk-bounce-in .7s var(--hfk-ease) both; }
.pv-sent-badge svg { width: 46px; height: 46px; }
.pv-sent-badge path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: pv-draw .55s .45s var(--hfk-ease) forwards; }
.pv-sent-ring { position: absolute; inset: 12px; border-radius: 50%; border: 2px solid var(--hfk-forest); opacity: 0; animation: pv-ring 2.6s .6s ease-out infinite; }
.pv-sent-ring + .pv-sent-ring { animation-delay: 1.5s; }
@keyframes pv-draw { to { stroke-dashoffset: 0; } }
@keyframes pv-ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.pv-sent .kt-alert { animation: hfk-fade-up .5s .25s var(--hfk-ease) both; }

.pv-sub { margin: .3rem 0 0; font-size: 1.1rem; }
.pv-tips { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; margin: 0; padding: 0; list-style: none; }
.pv-tips li { display: flex; align-items: flex-start; gap: .8rem; opacity: 0; animation: hfk-fade-up .5s var(--hfk-ease) forwards; }
.pv-tips li:nth-child(1) { animation-delay: .4s; }
.pv-tips li:nth-child(2) { animation-delay: .52s; }
.pv-tips li:nth-child(3) { animation-delay: .64s; }
.pv-tip-num { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; background: var(--hfk-flame-light); color: var(--hfk-flame-dark); font-family: var(--hfk-font-head); font-weight: 700; font-size: .9rem; }
.pv-tips strong { display: block; font-family: var(--hfk-font-head); color: var(--hfk-charcoal); }
.pv-tips li span:not(.pv-tip-num) { font-size: .9rem; color: var(--hfk-muted); }

/* Nouvelle demande : bouton verrouillé pendant le compte à rebours */
.pv-resend { padding-top: 1.1rem; border-top: 1px solid var(--hfk-border); }
.pv-resend-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 50px; }
.pv-resend-btn i { transition: transform .5s var(--hfk-ease); }
.pv-resend-btn:hover i { transform: rotate(180deg); }
.pv-resend-btn.is-waiting { pointer-events: none; color: var(--hfk-muted); border-color: var(--hfk-border); background: var(--hfk-cream); }
.pv-resend-btn.is-ready { animation: hfk-pulse-soft 1.6s ease-in-out 2; }
.pv-timer { margin-top: .7rem; }
.pv-timer[hidden] { display: none; }
.pv-timer-bar { height: 5px; background: var(--hfk-ash); overflow: hidden; }
.pv-timer-bar span { display: block; width: 100%; height: 100%; background: var(--hfk-grad-fire-h, var(--hfk-flame)); transform-origin: left; transition: transform 1s linear; }
.pv-timer small { display: block; margin-top: .4rem; font-size: .84rem; color: var(--hfk-muted); text-align: center; }
.pv-timer b { font-variant-numeric: tabular-nums; color: var(--hfk-charcoal); }

/* ---------------------------------------------------------------------
 * 3. Adaptation aux écrans
 * ------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    .pv-sep { display: block; height: .4rem; visibility: hidden; }
    .pv-sent-visual { width: 84px; height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
    .pv-sent-ring { animation: none; }
    .pv-sent-badge path { animation: none; stroke-dashoffset: 0; }
    .pv-tips li { opacity: 1; animation: none; }
    .pv-timer-bar span { transition: none; }
}