/* Telas de senha (primeiro acesso e recuperação) — Tabloide Pronto.
   Autônomo: não depende do admin.css, que o app do cliente não serve. */
.ap-page *, .ap-page *::before, .ap-page *::after { box-sizing: border-box; }
.ap-page .hidden { display: none !important; }
.ap-page input, .ap-page button { font-family: inherit; }
.ap-page button { cursor: pointer; }
.ap-page img { max-width: 100%; }
.ap-page {
  --ap-green: #123e2f;
  --ap-green-2: #195539;
  --ap-lime: #d9f477;
  --ap-ink: #173b29;
  --ap-muted: #5f7367;
  --ap-line: #dbe5da;
  --ap-bg: #f4f7f2;
  --ap-error: #b3423a;
  margin: 0;
  background: var(--ap-bg);
  color: var(--ap-ink);
  font-family: "DM Sans", system-ui, sans-serif;
}
.ap-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px 16px 32px;
  background:
    radial-gradient(circle at 85% 8%, #e1f0c4 0, transparent 38%),
    radial-gradient(circle at 8% 92%, #d6ead9 0, transparent 34%),
    var(--ap-bg);
}
.ap-card {
  width: min(100%, 440px);
  padding: 32px 28px 26px;
  border: 1px solid #e3eae2;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px #123e2f14, 0 2px 6px #123e2f0a;
}
.ap-logo { display: block; width: 168px; height: auto; margin: 0 0 22px; }

/* Etapas */
.ap-steps { display: flex; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.ap-steps li {
  flex: 1; display: flex; align-items: center; gap: 7px;
  padding-top: 10px; border-top: 3px solid #e3eae2;
  color: #8a9a8f; font-size: 12px; font-weight: 700;
}
.ap-steps li span {
  display: inline-grid; place-items: center; width: 20px; height: 20px;
  border-radius: 50%; background: #e9efe8; color: #6c7f72; font-size: 11px;
}
.ap-steps li.is-active { border-top-color: var(--ap-green-2); color: var(--ap-ink); }
.ap-steps li.is-active span { background: var(--ap-green); color: var(--ap-lime); }
.ap-steps li.is-done { border-top-color: #8fc06a; color: var(--ap-green-2); }
.ap-steps li.is-done span { background: #8fc06a; color: #fff; }

/* Ícone */
.ap-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin: 0 0 14px;
  border-radius: 16px; background: var(--ap-green); color: var(--ap-lime);
}
.ap-icon:empty { display: none; }
.ap-icon svg { width: 26px; height: 26px; }

.ap-card h1 {
  margin: 0; color: var(--ap-green);
  font: 800 26px/1.2 Manrope, sans-serif; letter-spacing: -.7px;
}
.ap-intro { margin: 10px 0 22px; color: var(--ap-muted); font-size: 15px; line-height: 1.6; }

/* Formulário */
.ap-form { display: grid; gap: 14px; }
.ap-field { display: grid; gap: 7px; }
.ap-label { color: #3f5646; font-size: 13px; font-weight: 700; }
.ap-field input {
  width: 100%; height: 50px; padding: 0 14px;
  border: 1.5px solid var(--ap-line); border-radius: 12px;
  background: #fff; color: #1f3a2b; font-size: 16px; outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
.ap-field input::placeholder { color: #9aa99f; }
.ap-field input:focus { border-color: #4f9a68; box-shadow: 0 0 0 4px #4f9a6826; }
.ap-input-wrap { position: relative; display: block; }
.ap-input-wrap input { padding-right: 84px; }
.ap-eye {
  position: absolute; top: 6px; right: 6px; height: 38px; padding: 0 12px;
  border: 0; border-radius: 9px; background: #eef3ec; color: var(--ap-green-2);
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.ap-eye:hover { background: #e2ebdf; }
.ap-hint { margin: 0; color: var(--ap-muted); font-size: 13px; line-height: 1.5; }
.ap-hint.is-ok { color: #2f7a4a; }

.ap-meter { height: 6px; overflow: hidden; border-radius: 99px; background: #e6ede5; }
.ap-meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: #d9a441; transition: width .2s, background .2s; }
.ap-meter i[data-level="1"] { width: 33%; background: #d9695d; }
.ap-meter i[data-level="2"] { width: 66%; background: #d9a441; }
.ap-meter i[data-level="3"] { width: 100%; background: #3f9a5c; }

/* Botões */
.ap-button {
  display: inline-flex; width: 100%; min-height: 52px; align-items: center; justify-content: center;
  padding: 0 18px; border: 0; border-radius: 14px;
  background: var(--ap-green-2); color: #fff; box-shadow: 0 8px 20px #1955391f;
  font: 800 15px Manrope, sans-serif; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .05s, box-shadow .15s;
}
.ap-button:hover { background: var(--ap-green); }
.ap-button:active { transform: translateY(1px); }
.ap-button:focus-visible, .ap-eye:focus-visible, .ap-back:focus-visible { outline: 3px solid var(--ap-lime); outline-offset: 3px; }
.ap-button:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
.ap-button-light { background: #eef3ec; color: var(--ap-green-2); box-shadow: none; }
.ap-button-light:hover { background: #e2ebdf; }

/* Painéis (link enviado / concluído) */
.ap-panel { display: grid; gap: 12px; }
.ap-panel-title { margin: 0; color: var(--ap-muted); font-size: 13px; font-weight: 700; }
.ap-panel-email {
  margin: 0; padding: 12px 14px; border-radius: 12px; background: #f0f6ec;
  color: var(--ap-green); font-weight: 800; word-break: break-all;
}
.ap-tips { margin: 2px 0 6px; padding-left: 18px; color: var(--ap-muted); font-size: 14px; line-height: 1.7; }

.ap-message { min-height: 20px; margin: 14px 0 0; color: var(--ap-error); font-size: 13px; line-height: 1.5; }
.ap-message.is-info { color: var(--ap-muted); }
.ap-message:empty { min-height: 0; margin: 0; }

.ap-back {
  display: inline-block; margin-top: 16px; color: var(--ap-green-2);
  font-size: 14px; font-weight: 700; text-decoration: none;
}
.ap-back:hover { text-decoration: underline; }
.ap-foot { margin: 0; color: #86978b; font-size: 12px; }

@media (min-width: 768px) {
  .ap-shell { padding: 48px 24px; }
  .ap-card { width: min(100%, 480px); padding: 40px 38px 32px; }
  .ap-logo { width: 184px; }
  .ap-card h1 { font-size: 28px; }
}
@media (max-width: 420px) {
  .ap-card { padding: 26px 20px 22px; border-radius: 20px; }
  .ap-card h1 { font-size: 24px; }
  .ap-steps li { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-button, .ap-field input, .ap-meter i { transition: none; }
}
