/* Recuperação, verificação e estados de autenticação — v5. */
html.acl-modal-open { overflow: hidden !important; }
.login-auth-status {
  display: none;
  min-height: 44px;
  margin: 2px 0 4px;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: .78rem;
  line-height: 1.45;
}

.login-auth-status.is-visible { display: flex; align-items: flex-start; gap: 9px; }
.login-auth-status.is-error { border-color: rgb(248 113 113 / 38%); background: rgb(127 29 29 / 20%); color: #fecaca; }
.login-auth-status.is-info { border-color: rgb(96 165 250 / 34%); background: rgb(30 64 175 / 15%); color: #bfdbfe; }
.login-auth-status i { margin-top: 2px; flex: 0 0 auto; }
body.theme-light .login-auth-status.is-error { background: #fff1f2; color: #9f1239; }
body.theme-light .login-auth-status.is-info { background: #eff6ff; color: #1e40af; }

.acl-overlay {
  position: fixed;
  inset: 0;
  z-index: 100120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(7 4 10 / 88%);
  color: var(--access-text, #f7f2fb);
  backdrop-filter: blur(14px);
}

.acl-overlay.hidden { display: none !important; }

.acl-card {
  box-sizing: border-box;
  width: min(590px, 100%);
  max-height: min(760px, calc(100dvh - 48px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--access-border, #49365a);
  border-radius: 24px;
  background: var(--access-bg, #0c0712);
  box-shadow: 0 32px 100px rgb(0 0 0 / 58%);
}

.acl-head { display: flex; align-items: flex-start; gap: 15px; }
.acl-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(240 200 51 / 38%);
  border-radius: 15px;
  background: rgb(240 200 51 / 10%);
  color: var(--access-gold, #f0c833);
  font-size: 1.05rem;
}
.acl-title-wrap { min-width: 0; }
.acl-eyebrow { margin: 1px 0 7px; color: var(--access-gold, #f0c833); font-size: .64rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.acl-card h2 { margin: 0; color: var(--access-text, #f7f2fb); font: 800 clamp(1.35rem, 3vw, 1.8rem)/1.2 Poppins, Inter, sans-serif; }
.acl-card p { margin: 9px 0 0; color: var(--access-muted, #b7a9c2); font-size: .82rem; line-height: 1.55; }
.acl-card .acl-close {
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex: 0 0 auto;
  border: 1px solid var(--access-border, #49365a);
  border-radius: 13px;
  color: var(--access-muted, #b7a9c2);
  font-size: 1.35rem;
}
.acl-close:hover,
.acl-close:focus-visible { border-color: var(--access-gold, #f0c833); color: var(--access-text, #f7f2fb); }

.acl-summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding: 13px 14px;
  border-left: 3px solid var(--access-green, #42d6a4);
  border-radius: 10px;
  background: rgb(66 214 164 / 8%);
  color: #c7f7e6;
  font-size: .76rem;
  line-height: 1.5;
}
.acl-summary i { margin-top: 2px; }
.acl-field { margin-top: 20px; }
.acl-field label { display: block; margin-bottom: 7px; color: var(--access-muted, #b7a9c2); font-size: .64rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.acl-card .acl-field input {
  width: 100%;
  min-height: 48px !important;
  padding: 12px 14px;
  border: 1px solid var(--access-border, #49365a);
  border-radius: 13px;
  outline: 0;
  background: #110a18;
  color: var(--access-text, #f7f2fb);
  font-size: 1rem;
}
.acl-field input:focus { border-color: var(--access-gold, #f0c833); box-shadow: 0 0 0 3px rgb(240 200 51 / 12%); }
.acl-helper { display: block; margin-top: 7px; color: var(--access-muted, #b7a9c2); font-size: .7rem; line-height: 1.4; }
.acl-status { min-height: 21px; margin-top: 12px; color: var(--access-gold, #f0c833); font-size: .77rem; line-height: 1.45; }
.acl-status.is-success { color: #6ee7b7; }
.acl-status.is-error { color: #fca5a5; }
.acl-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.acl-card .acl-btn {
  min-height: 46px !important;
  padding: 10px 15px;
  border: 1px solid var(--access-border, #49365a);
  border-radius: 12px;
  color: var(--access-text, #f7f2fb);
  font-size: .77rem;
  font-weight: 900;
}
.acl-card .acl-btn.primary { min-width: 190px; border-color: transparent; background: var(--access-gold, #f0c833); color: #241a00; }
.acl-card .acl-btn:disabled { cursor: wait; opacity: .58; }
.acl-success { padding-top: 8px; text-align: center; }
.acl-success .acl-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-color: rgb(66 214 164 / 40%); background: rgb(66 214 164 / 10%); color: var(--access-green, #42d6a4); font-size: 1.35rem; }
.acl-success h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
.acl-success .acl-actions { justify-content: center; }
.acl-email { overflow-wrap: anywhere; color: var(--access-text, #f7f2fb); font-weight: 800; }

body.theme-light .acl-overlay { background: rgb(47 35 54 / 42%); }
body.theme-light .acl-card { background: var(--access-bg, #fbf9fc); }
body.theme-light .acl-field input { background: #fff; color: var(--access-text, #24182d); }
body.theme-light .acl-summary { background: #edfff8; color: #166047; }

@media (max-width: 600px) {
  .acl-overlay { width: 100vw; padding: 0; place-items: stretch; }
  .acl-card { display: flex; width: 100vw; min-width: 100vw; max-width: none; max-height: 100dvh; min-height: 100dvh; flex-direction: column; padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); border: 0; border-radius: 0; }
  .acl-card #aclResetForm { display: flex; min-height: 0; flex: 1; flex-direction: column; }
  .acl-card #aclResetForm .acl-actions { margin-top: auto; }
  .acl-actions { position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom)); margin-right: -18px; margin-bottom: calc(-24px - env(safe-area-inset-bottom)); margin-left: -18px; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, var(--access-bg, #0c0712) 22%); }
  .acl-actions .acl-btn.primary { flex: 1; min-width: 0; }
  .acl-success { display: flex; min-height: calc(100dvh - 48px - env(safe-area-inset-bottom)); flex-direction: column; justify-content: center; }
  .acl-success .acl-actions { position: static; margin: 22px 0 0; padding: 0; background: none; }
}

@media (prefers-reduced-motion: reduce) {
  .acl-overlay * { transition: none !important; animation: none !important; }
}
