.gov-bar {
  background-color: var(--azul-escuro, #002244);
  border-bottom: 4px solid var(--amarelo-alerta, #ffc107);
  padding: 12px 24px;
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}
.gov-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.gov-portal-text {
  color: var(--branco, #ffffff);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  width: 100%;
  flex: 1 0 auto;
  box-sizing: border-box;
}
.login-card {
  background: var(--branco, #ffffff);
  width: 100%;
  max-width: 460px;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 53, 128, 0.12);
  border-top: 6px solid var(--azul-cyan, #00a3ff);
  box-sizing: border-box;
}
.brand-header {
  text-align: center;
  margin-bottom: 35px;
}
.brand-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}
.logo-prefeitura {
  width: 90px;
  height: auto;
}
.brand-header h1 {
  color: var(--azul-escuro, #002244);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0;
}
.brand-header h2 {
  color: var(--texto-principal, #2d3748);
  font-size: 1rem;
  font-weight: 500;
  margin: 10px 0 6px 0;
}
.brand-header p {
  color: var(--texto-mutado, #6c757d);
  font-size: 0.90rem;
  font-weight: 400;
  margin: 0;
}
#loginForm {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--texto-principal, #2d3748);
}
.password-wrapper {
  position: relative;
  width: 100%;
}
.password-wrapper .sm-input {
  width: 100%;
  padding-right: 48px;
  box-sizing: border-box;
}
.toggle-password {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--texto-mutado, #6c757d);
  font-size: 1rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}
.toggle-password:hover {
  color: var(--azul-escuro, #002244);
}
#btnAcessar {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
#btnAcessar.loading,
#btnAcessar:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}
.sm-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.login-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #edf1f7;
}
.login-footer p {
  font-size: 0.85rem;
  color: var(--texto-mutado, #6c757d);
  line-height: 1.4;
  margin: 0;
}
.footer-links {
  margin: 16px 0;
  font-size: 0.75rem;
}
.footer-links a {
  color: var(--azul-cyan, #00a3ff);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--azul-escuro, #002244);
  text-decoration: underline;
}
.copyright-text {
  display: block;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--texto-mutado, #6c757d);
  line-height: 1.5;
}
@media (max-width: 768px) {
  .login-wrapper {
    padding: 20px;
    align-items: flex-start;
  }
  .login-card {
    padding: 30px 24px;
  }
  .brand-header h1 {
    font-size: 1.7rem;
  }
  .brand-header h2 {
    font-size: 0.95rem;
  }
}
@media (max-width: 480px) {
  .gov-bar {
    padding: 10px 16px;
  }
  .gov-portal-text {
    font-size: 0.8rem;
  }
  .login-card {
    border-radius: 8px;
    padding: 24px 20px;
  }
  .logo-prefeitura {
    width: 70px;
  }
}