/* Tela de entrada e páginas legais. */
.auth__topo { display: flex; align-items: center; gap: var(--space-md); }
.auth__topo img { flex: none; width: 72px; height: 72px; }
.auth__topo h1 { min-width: 0; }
@media (max-width: 30rem) { .auth__topo img { width: 56px; height: 56px; } }
.auth .auth__google { margin-top: 0; }
.auth__ou { display: flex; align-items: center; gap: var(--space-md); margin: var(--space-lg) 0; color: var(--color-muted); font-size: var(--text-sm); }
.auth__ou::before, .auth__ou::after { content: ''; flex: 1; height: 1px; background: var(--color-rule); }
.auth__g { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: #fff; }
.auth__g svg { width: 16px; height: 16px; }
.auth__erro-google { margin-top: var(--space-sm); color: var(--color-error); font-size: var(--text-sm); }
.auth__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-sm); margin-top: var(--space-md); font-size: var(--text-sm); }
.auth__links button, .auth__aviso button { padding: 0; background: none; border: 0; color: var(--color-ink-2); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.auth__links button:hover, .auth__aviso button:hover { color: var(--color-ink); }
.auth__aviso { margin-top: var(--space-xl); padding: var(--space-md); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-control); }
.auth__aviso p { overflow-wrap: anywhere; }
.auth__aviso div { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-md); font-size: var(--text-sm); }
.auth__termos { margin-top: var(--space-sm); font-size: var(--text-xs); color: var(--color-muted); }
.auth__termos a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Formulário de entrada mais junto. */
.auth #form .seg { margin-top: 20px; }
.auth #form .field { gap: 4px; margin-top: 10px; }
.auth #form .seg + .field, .auth #form .seg + [hidden] + .field { margin-top: 14px; }
.auth .form__error { min-height: 0; margin-top: 8px; }
.auth .form__error:empty { display: none; }
.auth #form .btn { margin-top: 14px; }
.auth__links { margin-top: 8px; }
.auth__ou { margin: 12px 0; }
.auth__alt { margin-top: 14px; }

/* Login sem rodapé: a página cabe na tela, sem rolagem à toa. */
body:has(> .auth) { display: flex; flex-direction: column; min-height: 100dvh; }
body:has(> .auth) > .auth { flex: 1; width: 100%; min-height: 0; }

/* Acabamento: logo no topo, frase abaixo, tudo alinhado ao centro. */
.auth__box { max-width: 384px; }
.auth__topo { flex-direction: column; gap: 20px; text-align: center; }
.auth__topo img { width: 72px; height: 72px; }
.auth .auth__topo h1 { font-family: inherit; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.auth__lead { text-align: center; }
.auth #form .seg { margin-top: 24px; padding: 3px; border-radius: 10px; }
.auth .seg label { padding: 7px; }
.auth .field input { min-height: 44px; padding: 0 14px; border-radius: 8px; }
.auth .field input::placeholder { color: var(--color-muted); }
.auth #form .btn, .auth .auth__google { min-height: 44px; font-size: 15px; font-weight: 500; }
.auth #form .btn { margin-top: 12px; }
.auth__links { justify-content: flex-end; margin-top: 10px; }
.auth__links button { color: var(--color-lilac); text-decoration: none; }
.auth__links button:hover { color: var(--color-lilac); text-decoration: underline; }
.auth__ou { margin: 14px 0; font-size: 13px; }
.auth__alt { margin-top: 20px; text-align: center; color: var(--color-ink-2); }
.auth__alt a { color: var(--color-lilac); }

.legal { max-width: min(680px, 90%); padding-block: var(--space-2xl); }
.legal h1 { font-family: var(--font-display); font-size: var(--text-display-s); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.legal__data { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.legal h2 { margin-top: var(--space-xl); font-size: var(--text-lg, 1.125rem); font-weight: 600; }
.legal p, .legal ul { margin-top: var(--space-sm); color: var(--color-ink-2); line-height: 1.6; }
.legal ul { padding-left: 1.25em; list-style: disc; }
.legal li + li { margin-top: var(--space-2xs); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal__rodape { margin-top: var(--space-2xl); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }

/* Olho do campo de senha */
.field--senha { position: relative; }
.auth .field--senha input { padding-right: 46px; }
.field--senha input::-ms-reveal { display: none; }
.ver-senha { position: absolute; top: 0; right: 0; bottom: 0; width: 44px; display: flex; align-items: center; justify-content: center; padding: 0; background: none; border: 0; border-radius: 8px; color: var(--color-muted); cursor: pointer; }
.ver-senha:hover { color: var(--color-ink); }
.ver-senha:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.ver-senha svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ver-senha[aria-pressed="true"] .risco { display: none; }

/* E-mail enviado */
.envio svg { display: block; width: 72px; height: 72px; overflow: visible; }
.envio__corpo, .envio__aba { fill: none; stroke: var(--color-lilac); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: envio-traco .6s ease-out forwards; }
.envio__aba { animation-delay: .35s; animation-duration: .4s; }
.envio__selo { transform-box: fill-box; transform-origin: center; opacity: 0; animation: envio-selo .4s cubic-bezier(.2, 1.4, .4, 1) .7s forwards; }
.envio__selo circle { fill: #7c3aed; stroke: var(--color-paper); stroke-width: 3; }
.envio__selo path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: envio-traco .3s ease-out .95s forwards; }
.auth__box--enviado .auth__topo img, .auth__box--enviado .auth__alt { display: none; }
.auth__box--enviado h1, .auth__box--enviado .auth__aviso { animation: envio-texto .4s ease-out .25s backwards; }
.auth__box--enviado .auth__aviso { margin-top: 12px; padding: 0; background: none; border: 0; text-align: center; color: var(--color-ink-2); }
.auth__box--enviado .auth__aviso p { white-space: pre-line; font-size: 15px; line-height: 1.6; }
.auth__box--enviado .auth__aviso div { justify-content: center; margin-top: 20px; }
@keyframes envio-traco { to { stroke-dashoffset: 0; } }
@keyframes envio-selo { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes envio-texto { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .envio__corpo, .envio__aba, .envio__selo, .envio__selo path, .auth__box--enviado h1, .auth__box--enviado .auth__aviso { animation: none; opacity: 1; stroke-dashoffset: 0; }
}
