/* Páginas públicas: entrada, esqueci-me, nova palavra-passe (mesmo desenho da maqueta) */
:root {
  --brand: #14213d; --on-brand: #ffffff; --accent: #e8792b;
  --bg: #f3f4f8; --surface: #ffffff; --line: #e3e6ee; --fg: #16192b; --fg-2: #4b5168; --fg-3: #8a90a6;
  --red-bg: #fbe0dd; --red-fg: #9f1d12; --green-bg: #dcf5e3; --green-fg: #17693a;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root {
  --brand: #0e1730; --on-brand: #eef1fa; --bg: #0b0f1c; --surface: #141a2c; --line: #262f47; --fg: #e9ecf6; --fg-2: #b3b9cf; --fg-3: #7d849e;
  --red-bg: #3d1714; --red-fg: #ff8f84; --green-bg: #11331f; --green-fg: #6ee39a; color-scheme: dark; } }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
.login { min-height: 100%; display: grid; grid-template-columns: 1.15fr 1fr; }
.login-art { position: relative; overflow: hidden; background: var(--brand); color: var(--on-brand); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px; }
.login-art .road { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent); }
.login-client { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.login-tag { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; font-weight: 600; text-wrap: balance; }
.login-powered { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 12.5px; color: color-mix(in srgb, var(--on-brand) 78%, var(--brand)); }
.login-form { display: grid; place-items: center; padding: 32px 16px; }
.card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; animation: rise .7s .12s cubic-bezier(.2,.8,.2,1) both; }
.card h1 { margin: 0; font-family: var(--font-display); font-size: 28px; }
.card p { margin: 0; color: var(--fg-2); line-height: 1.5; }
.field label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 5px; }
.field input { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 9px; padding: 11px 12px; font: inherit; font-size: 15px; }
.btn { border: 0; border-radius: 9px; padding: 12px 16px; font: inherit; font-weight: 700; font-size: 15px; background: var(--accent); color: #fff; cursor: pointer; }
.btn:disabled { opacity: .55; cursor: default; }
.link { color: var(--fg-2); font-size: 13px; text-align: center; }
.link a, a.link { color: var(--fg-2); }
.msg { border-radius: 9px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; }
.msg.err { background: var(--red-bg); color: var(--red-fg); }
.msg.ok { background: var(--green-bg); color: var(--green-fg); }
.check-row { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--fg-2); }
.check-row input { margin-top: 3px; }
.client-logo img { width: min(380px, 70vw); height: auto; display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.client-logo .plate { background: #fff; border-radius: 16px; padding: 20px 28px; }
.client-name { font-family: var(--font-display); font-size: 40px; font-weight: 700; letter-spacing: .02em; }
.regras { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 12.5px; color: var(--fg-3); }
.regras li.ok { color: var(--green-fg); font-weight: 700; }
.locked-box { display: flex; flex-direction: column; gap: 10px; }
.btn.secondary { background: var(--surface); color: var(--fg); border: 1px solid var(--line); text-align: center; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
@media (max-width: 760px) {
  .login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-art { padding: 34px 20px 54px; min-height: 250px; }
  .client-logo img { width: min(240px, 70vw); }
  .client-name { font-size: 30px; }
  .login-powered { bottom: 16px; }
}
