:root { --bg:#f7f8fb; --card:#fff; --text:#111827; --muted:#6b7280; --line:#e5e7eb; --blue:#075dcc; --green:#16a34a; --red:#dc2626; --shadow:0 10px 28px rgba(17,24,39,.08); }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); }
button, input { font: inherit; }
[hidden] { display: none !important; }
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.login-card { width: min(100%, 380px); background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 28px; }
.brand-mark { width: 46px; height: 46px; border-radius: 14px; background: #111827; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; letter-spacing: .5px; }
.login h1 { margin: 18px 0 6px; font-size: 24px; }
.login p { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.login label { display: grid; gap: 8px; color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.login input { height: 48px; width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; outline: none; font-size: 16px; text-transform: none; color: var(--text); background: #fff; }
.login input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,93,204,.12); }
.campo-senha { position: relative; display: block; }
.campo-senha input { padding-right: 76px; }
.campo-senha button { position: absolute; right: 4px; top: 2px; height: 44px; min-width: 64px; border: 0; background: transparent; color: var(--blue); font-weight: 800; font-size: 13px; cursor: pointer; border-radius: 12px; }
.login .btn { width: 100%; height: 48px; border: 0; border-radius: 14px; margin-top: 6px; background: var(--blue); color: #fff; font-weight: 800; cursor: pointer; }
.login .btn:disabled { opacity: .55; cursor: default; }
.login-error { min-height: 18px; margin-top: 12px; color: var(--red); font-size: 13px; line-height: 1.4; }
.login-ok { margin-top: 12px; color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.links { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
.link { min-height: 44px; display: inline-flex; align-items: center; border: 0; background: transparent; color: var(--blue); font-weight: 700; font-size: 13px; padding: 0 4px; cursor: pointer; text-decoration: none; }
.regras { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.regras li::before { content: '○'; display: inline-block; width: 20px; color: #9ca3af; }
.regras li.ok { color: #166534; }
.regras li.ok::before { content: '✓'; color: var(--green); font-weight: 900; }
.ola { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.ola b { color: var(--text); }
