/* Telas de recuperação de senha (/esqueci-minha-senha e /redefinir-senha).
   Mesmos tokens visuais de verificar-email.html / Login / Cadastro (Manrope, roxo→coral, campos #1B1822). */
:root {
  --bg: #0F0D14; --field: #1B1822; --line: #2A2632; --line-strong: #4A4456;
  --text: #FFFFFF; --muted: #9C96A8; --soft: #D8D3E0;
  --purple: #8B2FE8; --coral: #F2495C; --ok: #3FCB6B; --warn: #E8B930;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  max-width: 100%; background: var(--bg); color: var(--text);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5; overflow-x: hidden; overflow-wrap: anywhere;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
body::before, body::after {
  content: ""; position: fixed; left: 0; right: 0; height: 140px; pointer-events: none; filter: blur(24px); z-index: 0;
}
body::before { top: 0; background: linear-gradient(180deg, rgba(139, 47, 232, .16), transparent); }
body::after { bottom: 0; background: linear-gradient(0deg, rgba(242, 73, 92, .14), transparent); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { display: block; height: 22px; width: auto; max-width: 100%; }

main { position: relative; z-index: 1; flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 16px 20px 56px; }
.box { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.view { width: 100%; display: flex; flex-direction: column; align-items: center; }

.icon {
  width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center;
  background: var(--field); border: 1px solid var(--line); color: #C4A6F5; margin-bottom: 20px;
}
.icon svg { width: 26px; height: 26px; }
.icon.ok { color: var(--ok); border-color: rgba(63, 203, 107, .5); background: rgba(63, 203, 107, .1); }
.icon.bad { color: var(--coral); border-color: rgba(242, 73, 92, .5); background: rgba(242, 73, 92, .1); }

h1 { margin: 0 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.desc { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.desc .mask { display: block; margin-top: 6px; color: var(--soft); font-weight: 700; }

form { width: 100%; text-align: left; }
label { display: block; color: var(--soft); font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.field { position: relative; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%; min-height: 46px; padding: 10px 12px; background: var(--field); color: var(--text);
  border: 1px solid var(--line); border-radius: 9px; font: 500 16px/1.2 Manrope, system-ui, sans-serif; /* 16px: iOS não dá zoom no foco */
  outline: none; -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s;
}
.field input { padding-right: 48px; }
input::placeholder { color: #6B6577; }
input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139, 47, 232, .3); }
input[aria-invalid="true"] { border-color: var(--coral); }
.eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; padding: 0;
  display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: var(--muted); cursor: pointer;
}
.eye:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.eye svg { width: 18px; height: 18px; }
.eye .off { display: none; }
.eye[aria-pressed="true"] .on { display: none; }
.eye[aria-pressed="true"] .off { display: block; }

.gap { height: 14px; }
.hint { margin: 6px 0 0; font-size: 11.5px; line-height: 1.4; min-height: 0; }
.hint.err { color: var(--coral); }
.hint.ok { color: var(--ok); }
.hint.muted { color: var(--muted); }
.bars { display: flex; gap: 4px; margin-top: 8px; }
.bars i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }

.banner { width: 100%; margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; line-height: 1.45; text-align: left; }
.banner.err { background: rgba(242, 73, 92, .12); border: 1px solid rgba(242, 73, 92, .4); color: var(--coral); }
.banner.ok { background: rgba(63, 203, 107, .12); border: 1px solid rgba(63, 203, 107, .4); color: var(--ok); }

.btn {
  width: 100%; min-height: 48px; margin-top: 18px; padding: 0 16px; border: 0; border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  background: linear-gradient(90deg, var(--purple), var(--coral)); color: #fff;
  font: 700 15px/1 Manrope, system-ui, sans-serif; transition: opacity .15s, filter .15s;
}
.btn:hover:not(:disabled) { filter: brightness(1.08); }
.btn:disabled { opacity: .55; cursor: progress; }
.link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 6px; padding: 0 10px;
  background: none; border: 0; border-radius: 10px; color: var(--soft); cursor: pointer;
  font: 600 14px/1 Manrope, system-ui, sans-serif; text-decoration: none;
}
.link:hover:not(:disabled) { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.link:disabled { color: #6B6577; cursor: default; }
.ask { margin: 22px 0 0; color: var(--muted); font-size: 13px; }

.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 999px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } * { transition: none !important; } }

@media (max-width: 480px) {
  .top { padding: 10px 16px; }
  main { align-items: flex-start; padding-top: 36px; }
  h1 { font-size: 22px; }
}
@media (max-height: 520px) { main { align-items: flex-start; padding-top: 12px; } }
