/* Same palette, typography and centered card as the Captador login.
   Security pages use local assets, without analytics or third-party scripts. */
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: #fff; color: #212529;
  font: 1rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: #0d6efd; text-decoration: underline; }
a:hover { color: #0a58ca; }
button, input, select, textarea { font: inherit; }
button, .btn { cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
:focus-visible { outline: 3px solid #86b7fe; outline-offset: 3px; }
.auth-header, .auth-footer { background: #212529; color: #fff; }
.auth-header { box-shadow: 0 .5rem 1rem #00000026; }
.auth-nav { min-height: 56px; max-width: 1140px; padding: 8px 24px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-nav a { color: #fff; text-decoration: none; }
.auth-brand { font-size: 1.25rem; font-weight: 700; }
.auth-nav-actions { display: flex; gap: 20px; align-items: center; font-size: .95rem; }
.auth-signout { border: 0; background: transparent; color: #ff8792; padding: 0; }
.auth-main { flex: 1; width: 100%; padding: 36px 16px; display: flex; justify-content: center; align-items: center; }
.auth-card { width: 100%; max-width: 640px; padding: 24px; border: 1px solid #dee2e6; border-radius: 6px; box-shadow: 0 .125rem .25rem #00000013; overflow-wrap: anywhere; }
.auth-card--focus { max-width: 520px; }
.auth-card--login { max-width: 360px; }
h1 { font-size: 1.65rem; line-height: 1.25; font-weight: 500; margin: 0 0 24px; }
.auth-card--login h1 { text-align: center; }
h2 { font-size: 1.35rem; font-weight: 500; }
.auth-intro { color: #6c757d; text-align: center; margin: -8px 0 24px; }
.auth-footer { padding: 16px; text-align: center; font-size: .95rem; }
.auth-field { margin-bottom: 16px; }
.auth-field > label { display: block; margin-bottom: 8px; }
.form-control, input:not([type=hidden]):not([type=submit]):not([type=radio]):not([type=checkbox]), select {
  display: block; width: 100%; max-width: 100%; padding: 6px 12px; border: 1px solid #dee2e6; border-radius: 6px; color: #212529; background: #fff;
}
input:focus, select:focus { border-color: #86b7fe; }
.auth-checkbox { display: flex; gap: 8px; align-items: center; }
.helptext { color: #6c757d; font-size: .875rem; margin-top: 6px; }
.errorlist { list-style: none; padding: 0; color: #842029; margin: 6px 0; }
.alert { padding: 12px 16px; margin: 16px 0; border: 1px solid #ffecb5; border-radius: 6px; background: #fff3cd; }
.alert-danger { background: #f8d7da; border-color: #f5c2c7; color: #842029; }
.alert-danger .errorlist { margin: 0; }
.btn { display: inline-block; padding: 7px 12px; border: 1px solid transparent; border-radius: 6px; text-align: center; text-decoration: none; line-height: 1.5; }
.btn-primary { color: #fff; background: #0d6efd; border-color: #0d6efd; }
.btn-primary:hover { color: #fff; background: #0b5ed7; }
.btn-secondary { color: #fff; background: #6c757d; }
.btn-info { color: #fff; background: #0d6efd; }
.btn-danger { color: #fff; background: #dc3545; }
.btn-warning { color: #212529; background: #ffc107; }
.btn-link { background: transparent; color: #0d6efd; text-decoration: underline; padding: 4px 0; }
.auth-actions { display: flex; gap: 10px; margin-top: 24px; }
.auth-actions .btn-primary { flex: 1; }
.auth-cancel { text-align: center; margin-bottom: 0; }
.auth-alternatives, .auth-recovery { margin-top: 20px; }
.auth-recovery { text-align: center; }
.auth-alternatives .btn { width: 100%; margin-bottom: 8px; }
img { max-width: 100%; height: auto; }
.auth-card p:has(img) { text-align: center; }
code, pre { overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 420px) {
  .auth-nav { padding-inline: 16px; }
  .auth-nav-actions { gap: 12px; font-size: .875rem; }
  .auth-main { padding: 24px 12px; }
  .auth-card { padding: 20px; }
}
