/* ╔══════════════════════════════════════════════════════════════╗
 *    ║  forgot.css — Page "Mot de passe oublié"                    ║
 *       ║  Chemin : /var/www/proino/assets/css/forgot.css             ║
 *          ║  Style : sombre (comme login.php), carte centrée            ║
 *             ╚══════════════════════════════════════════════════════════════╝ */

:root {
  --bg:       #070C18;
  --surface:  #0D1525;
  --card:     #111E36;
  --border:   rgba(255,255,255,0.07);
  --accent:   #3B82F6;
  --accent-h: #60A5FA;
  --teal:     #14B8A6;
  --green:    #16A34A;
  --green-bg: #DCFCE7;
  --text:     #EDF2FF;
  --text2:    #94A3B8;
  --text3:    #3D4D63;
  --danger:   #EF4444;
  --danger-bg:rgba(239,68,68,.1);
  --warn:     #F59E0B;
  --success-bg:rgba(16,185,129,.1);
}

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

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    radial-gradient(ellipse 80% 60% at 15% 50%, rgba(59,130,246,.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(20,184,166,.05) 0%, transparent 60%);
  padding: 20px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-h); text-decoration: underline; }

/* ─── Carte ─── */
.fg-shell { width: 100%; display: flex; justify-content: center; }
.fg-card {
  width: 460px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 36px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03);
}
@media (max-width: 480px) { .fg-card { padding: 24px 22px; } }

/* ─── Brand ─── */
.fg-brand {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 28px; color: #fff;
}
.fg-brand:hover { text-decoration: none; }
.fg-brand img { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; }
.fg-brand strong { display: block; font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; }
.fg-brand em { font-style: normal; font-size: 9.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); font-weight: 600; }

/* ─── Stepper ─── */
.fg-steps {
  list-style: none; display: flex; justify-content: space-between;
  margin-bottom: 28px; position: relative;
}
.fg-steps::before {
  content: ''; position: absolute; top: 13px; left: 13px; right: 13px;
  height: 2px; background: var(--border); z-index: 0;
}
.fg-steps li {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; position: relative; z-index: 1;
  font-size: 10.5px; color: var(--text3);
  font-weight: 600; text-transform: uppercase; letter-spacing: .4px;
}
.fg-steps li i {
  font-style: normal; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: 50%; font-weight: 700; font-size: 12px;
  color: var(--text3); margin-bottom: 5px;
  transition: all .25s;
}
.fg-steps li.active i {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}
.fg-steps li.done i {
  background: var(--green); border-color: var(--green);
  font-size: 0;
}
.fg-steps li.done i::before { content: '✓'; font-size: 13px; color: #fff; }
.fg-steps li.active span, .fg-steps li.done span { color: var(--text); }

/* ─── Toast ─── */
.fg-toast {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  animation: fg-fadeIn .25s;
}
.fg-toast.error   { background: var(--danger-bg); color: #FCA5A5; border: 1px solid rgba(239,68,68,.3); }
.fg-toast.success { background: var(--success-bg); color: #6EE7B7; border: 1px solid rgba(16,185,129,.3); }
.fg-toast.info    { background: rgba(59,130,246,.08); color: #93C5FD; border: 1px solid rgba(59,130,246,.25); }
.fg-toast.warn    { background: rgba(245,158,11,.1); color: #FBBF24; border: 1px solid rgba(245,158,11,.3); }
@keyframes fg-fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ─── Étapes ─── */
.fg-step header { margin-bottom: 22px; }
.fg-step h1 {
  font-family: 'Syne', sans-serif;
  font-size: 24px; font-weight: 700;
  letter-spacing: -.5px; margin-bottom: 8px;
}
.fg-step header p {
  color: var(--text2); font-size: 13.5px; line-height: 1.55;
}

/* ─── Champs ─── */
.field { margin-bottom: 18px; position: relative; }
.field label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--text2); letter-spacing: .6px;
  text-transform: uppercase; margin-bottom: 7px;
}
.field input[type=text], .field input[type=email],
.field input[type=password] {
  width: 100%; padding: 12px 14px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text); font-size: 14px;
  font-family: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.14);
}
.field input[aria-invalid="true"] {
  border-color: var(--danger);
  background: rgba(239,68,68,.05);
}
.field .err {
  display: block; color: #FCA5A5;
  font-size: 12.5px; margin-top: 6px;
  min-height: 0;
  transition: min-height .2s;
}
.field .err:not(:empty) { min-height: 18px; }

/* ─── OTP ─── */
.otp-block { margin-bottom: 18px; }
.otp-block label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--text2); letter-spacing: .6px;
  text-transform: uppercase; margin-bottom: 10px;
}
.otp-input {
  width: 100%; max-width: 260px; display: block;
  margin: 0 auto;
  padding: 16px;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-size: 28px; font-weight: 700; letter-spacing: 12px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--card); color: var(--text);
  outline: none;
  transition: all .15s;
}
.otp-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.14);
}
.otp-input.invalid {
  border-color: var(--danger);
  animation: fg-shake .35s;
}
.otp-input.valid { border-color: var(--green); }
@keyframes fg-shake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-6px); }
  40%,80% { transform: translateX(6px); }
}
.otp-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--text2);
  margin: 10px 0 20px;
}

/* ─── Force mot de passe ─── */
.pwd-strength {
  margin-top: 8px;
  display: flex; align-items: center; gap: 10px;
}
.pwd-strength-bar {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--border);
  overflow: hidden; position: relative;
}
.pwd-strength-bar::after {
  content: ''; position: absolute; inset: 0;
  width: var(--pct, 0%);
  background: var(--color, var(--danger));
  transition: width .25s, background .25s;
  border-radius: inherit;
}
.pwd-strength-label {
  font-size: 11px; font-weight: 600;
  min-width: 78px; text-align: right;
  color: var(--text3);
}
.pwd-checklist {
  margin-top: 10px; display: grid;
  grid-template-columns: 1fr 1fr; gap: 4px 14px;
  font-size: 12px;
}
.pwd-checklist li {
  list-style: none;
  color: var(--text3);
  display: flex; align-items: center; gap: 6px;
  transition: color .15s;
}
.pwd-checklist li::before {
  content: '○';
  font-size: 11px; width: 14px; text-align: center;
}
.pwd-checklist li.ok { color: #6EE7B7; }
.pwd-checklist li.ok::before { content: '✓'; }

/* ─── Boutons ─── */
.actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 22px; gap: 12px; flex-wrap: wrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  border: none; border-radius: 8px;
  padding: 12px 22px;
  font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s, box-shadow .15s, transform .1s;
  box-shadow: 0 4px 14px rgba(59,130,246,.28);
  min-height: 42px;
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-h);
  box-shadow: 0 6px 20px rgba(59,130,246,.36);
}
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { background: #94A3B8; cursor: not-allowed; box-shadow: none; }
.btn-primary.btn-large { padding: 14px 32px; font-size: 15px; }

.btn-link {
  background: none; border: none; padding: 4px 0;
  color: var(--accent); cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 500;
  text-decoration: none;
}
.btn-link:hover { color: var(--accent-h); text-decoration: underline; }

.spinner {
  width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: fg-spin .7s linear infinite;
}
@keyframes fg-spin { to { transform: rotate(360deg); } }

/* ─── Succès ─── */
.success-block { text-align: center; padding: 18px 0 8px; }
.success-icon { display: flex; justify-content: center; margin-bottom: 18px; }
.success-block h1 { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.success-block p { color: var(--text2); margin-bottom: 24px; font-size: 14px; }

/* ─── Footer ─── */
.fg-footer {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text3);
  text-align: center;
}
