/* Tema das páginas de autenticação. A preferência é partilhada com o sistema. */
html[data-theme="dark"] body {
  background:#0b1220 !important;
  color:#d8e0ea;
}

html[data-theme="dark"] .auth-card {
  background:#111c2d !important;
  border:1px solid #26364b;
  box-shadow:0 12px 32px rgba(0,0,0,.35);
}

html[data-theme="dark"] h3,
html[data-theme="dark"] .auth-card [style*="color:#1a202c"] {
  color:#f1f5f9 !important;
}
html[data-theme="dark"] .sub,
html[data-theme="dark"] .form-label { color:#b7c5d4 !important; }
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .otp-input {
  background:#182538 !important;
  border-color:#304258 !important;
  color:#e5edf6 !important;
}
html[data-theme="dark"] .form-control::placeholder { color:#718399 !important; }
html[data-theme="dark"] .input-group-text,
html[data-theme="dark"] .input-group .btn-eye {
  background:#182538 !important;
  border-color:#304258 !important;
  color:#aebdcd !important;
}
html[data-theme="dark"] .input-group .btn-eye:hover { background:#26364b !important; }
html[data-theme="dark"] .auth-icon-circle { background:#173326 !important; }
html[data-theme="dark"] .divider { color:#8496aa; }
html[data-theme="dark"] .divider::before,
html[data-theme="dark"] .divider::after { background:#304258; }
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] [style*="color:#64748b"] { color:#9cafc1 !important; }
html[data-theme="dark"] .alert-danger { background:#3a2025; border-color:#87404b; color:#fecdd3; }

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus,
html[data-theme="dark"] .otp-input:focus {
  border-color:var(--accent) !important;
  box-shadow:none !important;
  outline:0 !important;
}

/* Auth pages do not load the main application theme. */
.auth-card,
.auth-card *,
.auth-card .form-control,
.auth-card .form-select,
.auth-card .input-group-text,
.auth-card .btn-eye,
.auth-card .alert {
  border: 0 !important;
  border-color: transparent !important;
}

.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus,
.auth-card .form-control:focus,
.auth-card .form-select:focus,
.auth-card .otp-input:focus {
  border: 0 !important;
  border-color: transparent !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* Mantém os grupos de campos contínuos: arredondamento só nas extremidades. */
.auth-card .input-group > .form-control {
  border-radius: 0 !important;
}

.auth-card .input-group > .input-group-text + .form-control:last-child {
  border-radius: 0 9px 9px 0 !important;
}

.auth-card .input-group > .btn-eye {
  border-radius: 0 9px 9px 0 !important;
}

.auth-card input:focus-visible,
.auth-card select:focus-visible,
.auth-card textarea:focus-visible,
.auth-card button:focus-visible,
.auth-card a:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px;
}

