/* ── Login por e-mail/usuário e senha (login.html e senha.html) ───────────────
   Usa o cartão e o fundo do login (style.css). Aqui ficam só o formulário, o medidor de força da senha e os estados da página do link. */

.login-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; color: var(--muted-2); font-size: .74rem; font-weight: 600; letter-spacing: .02em; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.pw-form { text-align: left; }
.pw-form .field-label { margin-top: 12px; }
.pw-form .field-label:first-child { margin-top: 0; }
.pw-form .input { font-size: .92rem; padding: 11px 13px; border-radius: 12px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); transition: background .2s, color .2s; }
.pw-eye:hover { background: var(--surface-3); color: var(--text); }
.pw-eye svg { width: 18px; height: 18px; }
.pw-eye .eye-off { display: none; }
.pw-eye[aria-pressed="true"] .eye-on { display: none; }
.pw-eye[aria-pressed="true"] .eye-off { display: block; }

.btn-pw {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 18px; padding: 13px 20px; border-radius: 14px; font-weight: 700; font-size: .92rem; color: #fff;
  background: linear-gradient(180deg, #e0001e, var(--accent)); box-shadow: 0 8px 18px -8px rgba(214, 0, 28, .7); transition: transform .2s var(--ease), box-shadow .3s var(--ease), opacity .2s;
}
.btn-pw:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(214, 0, 28, .8); }
.btn-pw:active:not(:disabled) { transform: scale(.985); }
.btn-pw:disabled { opacity: .62; }
.btn-pw.is-loading::after { content: ""; width: 16px; height: 16px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-pw-ghost { background: #fff; color: var(--text); border: 1px solid var(--border-2); box-shadow: var(--shadow-sm); }
.btn-pw-ghost:hover:not(:disabled) { box-shadow: var(--shadow); border-color: var(--muted-2); }

.login-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; margin-top: 14px; font-size: .8rem; }
.login-links a { color: var(--accent-dark); font-weight: 600; padding: 2px 4px; border-radius: 4px; }
.login-links a:hover { text-decoration: underline; }
.login-ok { background: var(--green-dim); color: #0b5f2c; border-color: #a6dfba; }

/* página do link ("esqueci minha senha", criar e redefinir senha) */
.senha-card { padding-bottom: 28px; }
.senha-card .login-renner { height: 84px; margin-bottom: 10px; }       /* logo menor: o formulário de criar senha tem três campos e cabe melhor na tela */
.senha-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; margin: 18px 0 6px; }
.senha-sub { color: var(--muted); font-size: .86rem; line-height: 1.5; margin-bottom: 18px; }
.senha-who { display: inline-block; max-width: 100%; overflow-wrap: anywhere; padding: 4px 11px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); font-size: .8rem; font-weight: 600; margin-bottom: 16px; }
.senha-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 0 14px; color: var(--muted); font-size: .86rem; }
.senha-big { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin: 18px auto 6px; font-size: 1.6rem; font-weight: 800; }
.senha-big.ok { background: var(--green-dim); color: var(--green); }
.senha-big.bad { background: var(--amber-dim); color: var(--amber); }
.senha-timer { font-size: .76rem; color: var(--muted); margin-top: 12px; text-align: center; }
.senha-timer b { color: var(--text-2); font-variant-numeric: tabular-nums; }
.field-hint { font-size: .74rem; color: var(--muted); margin-top: 5px; line-height: 1.4; }
.field-error { font-size: .76rem; color: var(--red); margin-top: 5px; line-height: 1.4; }
.field-error:empty { display: none; }

/* medidor de força da senha: quatro segmentos que acendem conforme o comprimento e a variedade */
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 9px; }
.pw-meter span { height: 5px; border-radius: 99px; background: var(--surface-3); transition: background .25s; }
.pw-meter[data-level="1"] span:nth-child(-n+1) { background: var(--red); }
.pw-meter[data-level="2"] span:nth-child(-n+2) { background: var(--amber); }
.pw-meter[data-level="3"] span:nth-child(-n+3) { background: #5aa832; }
.pw-meter[data-level="4"] span:nth-child(-n+4) { background: var(--green); }
.pw-meter-label { font-size: .74rem; color: var(--muted); margin-top: 5px; min-height: 1.1em; }
.pw-rules { list-style: none; margin: 10px 0 0; display: grid; gap: 4px; }
.pw-rules li { font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.pw-rules li::before { content: ""; width: 14px; height: 14px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--border-2); background: #fff; transition: background .2s, border-color .2s; }
.pw-rules li.ok { color: #0b5f2c; }
.pw-rules li.ok::before { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 10px no-repeat; border-color: var(--green); }

@media (max-width: 560px) {
  .senha-title { font-size: 1.3rem; }
  .senha-card .login-renner { height: 72px; margin-bottom: 8px; }
}
